1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12use Twig\Error\SyntaxError;
13use Twig\Node\ModuleNode;
14use Twig\TokenStream;
15
16/**
17 * Interface implemented by parser classes.
18 *
19 * @author Fabien Potencier <fabien@symfony.com>
20 *
21 * @deprecated since 1.12 (to be removed in 3.0)
22 */
23interface Twig_ParserInterface
24{
25    /**
26     * Converts a token stream to a node tree.
27     *
28     * @return ModuleNode
29     *
30     * @throws SyntaxError When the token stream is syntactically or semantically wrong
31     */
32    public function parse(TokenStream $stream);
33}
34