PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

The Parle\Parser class | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

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.

クラス概要

Parle\Parser {
/* Constants */
const integer ACTION_ERROR = 0 ;
const integer ACTION_SHIFT = 1 ;
const integer ACTION_REDUCE = 2 ;
const integer ACTION_GOTO = 3 ;
const integer ACTION_ACCEPT = 4 ;
const integer ERROR_SYNTAX = 0 ;
const integer ERROR_NON_ASSOCIATIVE = 1 ;
const integer ERROR_UNKOWN_TOKEN = 2 ;
/* プロパティ */
public integer $action = 0 ;
public integer $reduceId = 0 ;
/* メソッド */
public void advance ( void )
public void build ( void )
public void consume ( string $data , Parle\Lexer $lexer )
public void dump ( void )
public Parle\ErrorInfo errorInfo ( void )
public void left ( string $tok )
public void nonassoc ( string $tok )
public void precedence ( string $tok )
public int push ( string $name , string $rule )
public void reset ([ integer $tokenId ] )
public void right ( string $tok )
public string sigil ([ integer $idx ] )
public void token ( string $tok )
public int tokenId ( string $tok )
public string trace ( void )
public bool validate ( string $data , Parle\Lexer $lexer )
}

定義済み定数

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_UNKOWN_TOKEN

プロパティ

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.

目次


忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「The Parle\Parser class」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | The Parle\Parser class」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: