Parent

Class Index [+]

Quicksearch

Treetop::Runtime::TerminalParseFailure

Attributes

index[R]
index[R]
expected_string[R]

Public Class Methods

new(index, expected_string) click to toggle source
    # File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 6
 6:       def initialize(index, expected_string)
 7:         @index = index
 8:         @caller = caller
 9:         @expected_string = expected_string
10:       end
new(index, expected_string) click to toggle source
   # File lib/treetop/runtime/terminal_parse_failure.rb, line 6
6:       def initialize(index, expected_string)
7:         @index = index
8:         @expected_string = expected_string
9:       end

Public Instance Methods

expected_string() click to toggle source
    # File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 12
12:       def expected_string
13:         "#{@expected_string} from #{@caller.map{|s| s.sub(/\A.*:([0-9]+):in `([^']*)'.*/,'\2:\1')}*" from "}\n\t"
14:       end
to_s() click to toggle source
    # File lib/treetop/runtime/terminal_parse_failure_debug.rb, line 16
16:       def to_s
17:         "String matching #{expected_string} expected."
18:       end
to_s() click to toggle source
    # File lib/treetop/runtime/terminal_parse_failure.rb, line 11
11:       def to_s
12:         "String matching #{expected_string} expected."
13:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.