public function Twig_LexerInterface::tokenize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/LexerInterface.php \Twig_LexerInterface::tokenize()
Tokenizes a source code.
Parameters
string $code The source code:
string $filename A unique identifier for the source code:
Return value
Twig_TokenStream A token stream instance
Throws
Twig_Error_Syntax When the code is syntactically wrong
1 method overrides Twig_LexerInterface::tokenize()
- Twig_Lexer::tokenize in vendor/
twig/ twig/ lib/ Twig/ Lexer.php - Tokenizes a source code.
File
- vendor/
twig/ twig/ lib/ Twig/ LexerInterface.php, line 31
Class
- Twig_LexerInterface
- Interface implemented by lexer classes.
Code
public function tokenize($code, $filename = null);