The Parle\RParser classはじめにParser class. Rules can be defined on the fly. Once finalized, a Parle\RLexer instance is required to deliver the token stream. クラス概要Parle\RParser
class Parle\RParser
{
/* 定数 */
const
int
Parle\RParser::ACTION_ERROR = 0;
const
int
Parle\RParser::ACTION_SHIFT = 1;
const
int
Parle\RParser::ACTION_REDUCE = 2;
const
int
Parle\RParser::ACTION_GOTO = 3;
const
int
Parle\RParser::ACTION_ACCEPT = 4;
const
int
Parle\RParser::ERROR_SYNTAX = 0;
const
int
Parle\RParser::ERROR_NON_ASSOCIATIVE = 1;
const
int
Parle\RParser::ERROR_UNKNOWN_TOKEN = 2;
/* プロパティ */
public
int
$action = 0;
public
int
$reduceId = 0;
/* メソッド */
public void advance()
public void build()
public void consume(string
$data , Parle\RLexer $rlexer )public void dump()
public Parle\ErrorInfo errorInfo()
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(int
$tokenId = ?)public void right(string
$tok )public string sigil(int
$idx = ?)public int sigilCount()
public string sigilName(int
$idx )public void token(string
$tok )public int tokenId(string
$tok )public string trace()
public bool validate(string
}$data , Parle\RLexer $lexer )定義済み定数
プロパティ
|