public function Twig_ParserInterface::parse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/ParserInterface.php \Twig_ParserInterface::parse()
Converts a token stream to a node tree.
Parameters
Twig_TokenStream $stream A token stream instance:
Return value
Twig_Node_Module A node tree
Throws
Twig_Error_Syntax When the token stream is syntactically or semantically wrong
1 method overrides Twig_ParserInterface::parse()
- Twig_Parser::parse in vendor/
twig/ twig/ lib/ Twig/ Parser.php - Converts a token stream to a node tree.
File
- vendor/
twig/ twig/ lib/ Twig/ ParserInterface.php, line 30
Class
- Twig_ParserInterface
- Interface implemented by parser classes.
Code
public function parse(Twig_TokenStream $stream);