ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
TokenParserInterface.php
Go to the documentation of this file.
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
18{
22 public function setParser(Twig_Parser $parser);
23
31 public function parse(Twig_Token $token);
32
38 public function getTag();
39}
40
41class_alias('Twig_TokenParserInterface', 'Twig\TokenParser\TokenParserInterface', false);
42class_exists('Twig_Parser');
43class_exists('Twig_Token');
$parser
Definition: BPMN2Parser.php:23
An exception for terminatinating execution or to throw for unit testing.
Default parser implementation.
Definition: Parser.php:19
Represents a Token.
Definition: Token.php:21
Interface implemented by token parsers.
parse(Twig_Token $token)
Parses a token and returns a node.
getTag()
Gets the tag name associated with this token parser.
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser.