The Parle\Token class

(PECL parle >= 0.5.2)

簡(jiǎn)介

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

類(lèi)摘要

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

屬性

id

Token id.

value

Token value.

預(yù)定義常量

Parle\Token::EOI

End of input token id.

Parle\Token::UNKNOWN

Unknown token id.

Parle\Token::SKIP

Skip token id.