PHP - Manual: Parle\RLexer
2024-11-15
(PECL parle >= 0.5.1)
Multistate lexer class. Lexemes can be defined on the fly. If the particular lexer instance is meant to be used with Parle\RParser, the token IDs need to be taken from there. Otherwise, arbitrary token IDs can be supplied. Note, that Parle\Parser is not compatible with this lexer.
Parle\RLexer::ICASE
Parle\RLexer::DOT_NOT_LF
Parle\RLexer::DOT_NOT_CRLF
Parle\RLexer::SKIP_WS
Parle\RLexer::MATCH_ZERO_LEN
Start of input flag.
Lexer flags.
Current lexer state, readonly.
Position of the latest token match, readonly.
Current input offset, readonly.