PHP - Manual: Parle\RParser
2024-11-12
(PECL parle >= 0.7.0)
Parser class. Rules can be defined on the fly. Once finalized, a Parle\RLexer instance is required to deliver the token stream.
Parle\RParser::ACTION_ERROR
Parle\RParser::ACTION_SHIFT
Parle\RParser::ACTION_REDUCE
Parle\RParser::ACTION_GOTO
Parle\RParser::ACTION_ACCEPT
Parle\RParser::ERROR_SYNTAX
Parle\RParser::ERROR_NON_ASSOCIATIVE
Parle\RParser::ERROR_UNKNOWN_TOKEN
Current parser action that matches one of the action class constants, readonly.
Grammar rule id just processed in the reduce action. The value corresponds either to a token or to a production id. Readonly.