public function Twig_Environment::parse in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Environment.php \Twig_Environment::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 call to Twig_Environment::parse()
- Twig_Environment::compileSource in vendor/
twig/ twig/ lib/ Twig/ Environment.php - Compiles a template source code.
File
- vendor/
twig/ twig/ lib/ Twig/ Environment.php, line 613
Class
- Twig_Environment
- Stores the Twig configuration.
Code
public function parse(Twig_TokenStream $stream) {
return $this
->getParser()
->parse($stream);
}