UnexpectedChar is thrown by Lexer.token if it encounters a character for which no state transition is defined.

Constructor

new (char:String, pos:Position)

Creates a new instance of UnexpectedChar.

Variables

char:String

The character which caused this exception.

Methods

toString ():String

Returns a readable representation of this exception.

Inherited Variables

Defined by ParserError

read onlypos:Position

The position in the input where this exception occured.

Inherited Methods