41class_alias(
'Twig_TokenParserInterface',
'Twig\TokenParser\TokenParserInterface',
false);
42class_exists(
'Twig_Parser');
43class_exists(
'Twig_Token');
An exception for terminatinating execution or to throw for unit testing.
Default parser implementation.
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.