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

Parle\Parser::precedence

(PECL parle >= 0.5.1)

Parle\Parser::precedence — Declare a precedence rule

说明

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

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

参数

tok

Token name.

返回值

没有返回值。

相关文章
php bbcode 函数 attach another parser in order to use another rule set for argument parsingphp parle lexer finalize the lexer rule setphp parle lexer add a lexer rulephp parle parser process next parser rulephp 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 parser get token idphp parle parser trace the parser operationphp parle parser validate inputphp parle rlexer process next lexer rulephp parle rparser process next parser rulephp parle rparser declare a token with left associativityphp parle rparser declare a precedence rulephp parle rparser trace the parser operation
关注编程学问公众号
编程学问网 湘ICP备20001732号