The Parle\Parser class
Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream.
Intro
Parser class. Rules can be defined on the fly. Once finalized, a Parle\Lexer instance is required to deliver the token stream.
Class synopsis
Predefined Constants
Parle\Parser::ACTION_ERRORParle\Parser::ACTION_SHIFTParle\Parser::ACTION_REDUCEParle\Parser::ACTION_GOTOParle\Parser::ACTION_ACCEPTParle\Parser::ERROR_SYNTAXParle\Parser::ERROR_NON_ASSOCIATIVEParle\Parser::ERROR_UNKNOWN_TOKEN
Properties
actionCurrent parser action that matches one of the action class constants, readonly.
reduceIdGrammar rule id just processed in the reduce action. The value corresponds either to a token or to a production id. Readonly.
Parser