The ParleToken class

The Parle\Token class

(PECL parle >= 0.5.2)

簡介

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

類摘要

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.

預定義常量

Parle\Token::EOI

End of input token id.

Parle\Token::UNKNOWN

Unknown token id.

Parle\Token::SKIP

Skip token id.

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *