The Parle\Parser class
(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.
クラス概要
class Parle\Parser
{
/* 定数 */
/* プロパティ */
/* メソッド */
}定義済み定数
プロパティ
- action
-
Current parser action that matches one of the action class constants, readonly.
- reduceId
-
Grammar rule id just processed in the reduce action. The value corresponds either to a token or to a production id. Readonly.
目次
- Parle\Parser::advance — Process next parser rule
- Parle\Parser::build — Finalize the grammar rules
- Parle\Parser::consume — Consume the data for processing
- Parle\Parser::dump — Dump the grammar
- Parle\Parser::errorInfo — Retrieve the error information
- Parle\Parser::left — Declare a token with left-associativity
- Parle\Parser::nonassoc — Declare a token with no associativity
- Parle\Parser::precedence — Declare a precedence rule
- Parle\Parser::push — Add a grammar rule
- Parle\Parser::reset — Reset parser state
- Parle\Parser::right — Declare a token with right-associativity
- Parle\Parser::sigil — Retrieve a matching part of a rule
- Parle\Parser::sigilCount — Number of elements in matched rule
- Parle\Parser::sigilName — Retrieve a rule or token name
- Parle\Parser::token — Declare a token
- Parle\Parser::tokenId — Get token id
- Parle\Parser::trace — Trace the parser operation
- Parle\Parser::validate — Validate input
+add a note
User Contributed Notes
There are no user contributed notes for this page.