编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Parle\Stack::push
  • Parle\ErrorInfo »
  • PHP Manual
  • Parle
  • The Parle\Token class

The Parle\Token class

(PECL parle >= 0.5.2)

简介

This class represents a token. Lexer returns instances of this class.

类摘要

Parle\Token {
/* Constants */
const integer EOI = 0 ;
const integer UNKNOWN = -1 ;
const integer SKIP = -2 ;
/* 属性 */
public integer $id ;
public string $value ;
/* 方法 */
}

属性

id

Token id.

value

Token value.

预定义常量

Parle\Token::EOI

End of input token id.

Parle\Token::UNKNOWN

Unknown token id.

Parle\Token::SKIP

Skip token id.

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