PHP - Manual: Parle\Parser
2024-12-22
(PECL parle >= 0.5.1)
Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream.
Parle\Parser::ACTION_ERROR
Parle\Parser::ACTION_SHIFT
Parle\Parser::ACTION_REDUCE
Parle\Parser::ACTION_GOTO
Parle\Parser::ACTION_ACCEPT
Parle\Parser::ERROR_SYNTAX
Parle\Parser::ERROR_NON_ASSOCIATIVE
Parle\Parser::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.