class LexerException extends Exception

Exception thrown by the lexer.

Properties

string $ch The character that produced this error.
int $pos The index of the character that produced this error.

Methods

__construct(string $msg = '', string $ch = '', int $pos = 0, int $code = 0)

Constructor.

Details

at line 40
__construct(string $msg = '', string $ch = '', int $pos = 0, int $code = 0)

Constructor.

Parameters

string $msg the message of this exception
string $ch the character that produced this exception
int $pos the position of the character
int $code the code of this error