ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
41 class_alias('Twig_TokenParserInterface', 'Twig\TokenParser\TokenParserInterface', false);
42 class_exists('Twig_Parser');
43 class_exists('Twig_Token');
getTag()
Gets the tag name associated with this token parser.
parse(Twig_Token $token)
Parses a token and returns a node.
Default parser implementation.
Definition: Parser.php:18
setParser(Twig_Parser $parser)
Sets the parser associated with this token parser.
$parser
Definition: BPMN2Parser.php:23
Interface implemented by token parsers.