编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 bbcode 函数 attach another parser in order to use another rule set for argument parsingphp parle lexer process next lexer rulephp parle lexer finalize the lexer rule setphp parle lexer retrieve the current tokenphp parle parser process next parser rulephp parle parser retrieve the error informationphp parle parser declare a token with left associativityphp parle parser declare a token with no associativityphp parle parser declare a precedence rulephp parle parser add a grammar rulephp parle parser reset parser statephp parle parser declare a token with right associativityphp parle parser retrieve a matching part of a rulephp parle parser declare a tokenphp parle rlexer retrieve the current tokenphp parle rlexer add a lexer rulephp parle rparser process next parser rulephp parle rparser retrieve a matching part of a rulephp parle rparser trace the parser operation
关注编程学问公众号
编程学问网 湘ICP备20001732号