W3cubDocs

/Symfony 4.1

Lexer

class Lexer

Lexes an expression.

Methods

TokenStream tokenize(string $expression)

Tokenizes an expression.

Details

TokenStream tokenize(string $expression)

Tokenizes an expression.

Parameters

string $expression The expression to tokenize

Return Value

TokenStream A token stream instance

Exceptions

SyntaxError

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/ExpressionLanguage/Lexer.html