class RLTK::BadToken

A BadToken error indicates that a token was observed in the input stream that wasn’t used in the grammar’s definition.

Public Instance Methods

to_s() click to toggle source

@return [String] String representation of the error.

# File lib/rltk/parser.rb, line 23
def to_s
        'Unexpected token.  Token not present in grammar definition.'
end