编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\Parser::token
  • Parle\Parser::trace »
  • PHP Manual
  • Parle\Parser
  • Get token id

Parle\Parser::tokenId

(PECL parle >= 0.5.1)

Parle\Parser::tokenId — Get token id

说明

public Parle\Parser::tokenId ( string $tok ) : int

Retrieve the id of the named token.

参数

tok

Name of the token as used in Parle\Parser::token().

返回值

Returns integer representing the token id.

相关文章
php parle the parle parser classphp parle the parle token classphp parle lexer define token callbackphp 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 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 retrieve the current tokenphp parle rparser process next parser rulephp parle rparser declare a tokenphp parle rparser get token idphp parle rparser trace the parser operation
关注编程学问公众号
编程学问网 湘ICP备20001732号