Exception: RLTK::BadToken
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
-
#to_s ⇒ String
String representation of the error.
Instance Method Details
#to_s ⇒ String
Returns 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 |