编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\RParser::right
  • Parle\RParser::token »
  • PHP Manual
  • Parle\RParser
  • Retrieve a matching part of a rule

Parle\RParser::sigil

(PECL parle >= 0.7.0)

Parle\RParser::sigil — Retrieve a matching part of a rule

说明

public Parle\RParser::sigil ([ int $idx ] ) : string

Retrieve a part of the match by a rule. This method is equivalent to the pseudo variable functionality in Bison.

参数

idx

Match index, zero based.

返回值

Returns a string with the matched part.

相关文章
php parle lexer retrieve the current tokenphp parle lexer add a lexer rulephp parle parser process next parser rulephp parle parser retrieve the error informationphp parle parser retrieve a matching part of a rulephp parle rlexer process next lexer rulephp parle rlexer finalize the lexer rule setphp parle rparser process next parser rulephp parle rparser finalize the grammar rulesphp parle rparser consume the data for processingphp parle rparser dump the grammarphp parle rparser retrieve the error informationphp parle rparser declare a token with left associativityphp parle rparser declare a token with no associativityphp parle rparser declare a precedence rulephp parle rparser add a grammar rulephp parle rparser reset parser statephp parle rparser declare a token with right associativityphp parle rparser retrieve a matching part of a rulephp parle parle pattern matching
关注编程学问公众号
编程学问网 湘ICP备20001732号