PHP - Manual: Parle\RLexer
2025-10-24
(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::ICASEParle\RLexer::DOT_NOT_LFParle\RLexer::DOT_NOT_CRLFParle\RLexer::SKIP_WSParle\RLexer::MATCH_ZERO_LENStart of input flag.
Lexer flags.
Current lexer state, readonly.
Position of the latest token match, readonly.
Current input offset, readonly.