Exception: RLTK::NotInLanguage

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

Overview

A NotInLanguage error is raised whenever there is no valid parse tree for a given token stream. In other words, the input string is not in the defined language.

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns String representation of the error.

Returns:

  • (String)

    String representation of the error.



33
34
35
# File 'lib/rltk/parser.rb', line 33

def to_s
	'String not in language.'
end