编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\RParser::sigil
  • Parle\RParser::tokenId »
  • PHP Manual
  • Parle\RParser
  • Declare a token

Parle\RParser::token

(PECL parle >= 0.7.0)

Parle\RParser::token — Declare a token

说明

public Parle\RParser::token ( string $tok ) : void

Declare a terminal to be used in the grammar.

参数

tok

Token name.

返回值

没有返回值。

相关文章
php parle the parle token classphp parle lexer retrieve the current tokenphp parle parser declare a token with left associativityphp parle parser declare a token with no associativityphp parle parser declare a token with right associativityphp parle parser declare a tokenphp parle parser get token idphp parle rlexer define token callbackphp 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 declare a tokenphp parle rparser get token id
关注编程学问公众号
编程学问网 湘ICP备20001732号