php8.5
Home/ Manual/ reference / parle/ The Parle\Token class

The Parle\Token class

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

Intro

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

Class synopsis

class Parle\Token { }

Properties

id

Token id.

value

Token value.

Predefined Constants

Parle\Token::EOI

End of input token id.

Parle\Token::UNKNOWN

Unknown token id.

Parle\Token::SKIP

Skip token id.

Source: reference/parle/parle.token.xml · from the official PHP manual (php/doc-en)