The Parle\Token class

Introduction

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

Class synopsis

Parle\Token
class Parle\Token {
/* Constants */
const int Parle\Token::EOI = 0;
const int Parle\Token::UNKNOWN = -1;
const int Parle\Token::SKIP = -2;
/* Properties */
public int $id;
public string $value;
/* Methods */
}

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.