编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\RParser::nonassoc
  • Parle\RParser::push »
  • PHP Manual
  • Parle\RParser
  • Declare a precedence rule

Parle\RParser::precedence

(PECL parle >= 0.7.0)

Parle\RParser::precedence — Declare a precedence rule

说明

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

Declares a precedence rule for a fictious terminal symbol. This rule can be later used in the specific grammar rules.

参数

tok

Token name.

返回值

没有返回值。

相关文章
php parle the parle rparser classphp parle lexer finalize the lexer rule setphp parle parser declare a precedence rulephp parle parser add a grammar rulephp parle parser declare a token with right associativityphp parle parser retrieve a matching part of a rulephp parle parser declare a tokenphp 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 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 declare a token with right associativityphp parle rparser retrieve a matching part of a rulephp parle rparser declare a tokenphp parle rparser trace the parser operationphp parle rparser validate input
关注编程学问公众号
编程学问网 湘ICP备20001732号