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

Parle\Parser::sigil

(PECL parle >= 0.5.1)

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

说明

public Parle\Parser::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 the parle parser classphp parle parser process next parser rulephp parle parser finalize the grammar rulesphp parle parser consume the data for processingphp parle parser dump the grammarphp parle parser retrieve the error informationphp parle parser declare a token with left associativityphp parle parser declare a precedence rulephp parle parser add a grammar rulephp parle parser retrieve a matching part of a rulephp parle parser validate inputphp parle rlexer process next lexer rulephp parle rlexer finalize the lexer rule setphp parle rlexer retrieve the current tokenphp parle rparser process next parser rulephp parle rparser declare a precedence rulephp parle rparser add a grammar rulephp parle rparser reset parser statephp parle rparser retrieve a matching part of a rulephp parle parle pattern matching
关注编程学问公众号
编程学问网 湘ICP备20001732号