class Treetop::Runtime::TerminalParseFailure
Attributes
expected_string[R]
index[R]
unexpected[R]
Public Class Methods
new(index, expected_string, unexpected = false)
click to toggle source
# File lib/treetop/runtime/terminal_parse_failure.rb, line 6 def initialize(index, expected_string, unexpected = false) @index = index @expected_string = expected_string @unexpected = unexpected end
Public Instance Methods
to_s()
click to toggle source
# File lib/treetop/runtime/terminal_parse_failure.rb, line 12 def to_s "String matching #{expected_string} #{@unexpected ? 'not ' : ''}expected." end