Exception: RLTK::BadToken

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rltk/parser.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns String representation of the error.

Returns:

  • (String)

    String representation of the error.



23
24
25
# File 'lib/rltk/parser.rb', line 23

def to_s
	'Unexpected token.  Token not present in grammar definition.'
end