public
Description: A Ruby-based parsing DSL based on parsing expression grammars.
Homepage: http://treetop.rubyforge.org
Clone URL: git://github.com/nathansobo/treetop.git
Fixed breakage in TerminalParseFailure#to_s, removed #line and #column
* TerminalParseFailure#line and #column were still referencing input
* #to_s doesn't report line and column now
* New parser failure API will be added in next commit
cjheath (author)
Tue Dec 11 15:19:28 -0800 2007
commit  b6a94624a06dfd5a0af8b465cae960c6652cc5e9
tree    dbf4f91259839feba145fd22dbfdd637b6d16116
parent  9c5b6115c6681632ebf348a9bd8644bdf3bffacc
...
2
3
4
5
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
 
22
23
24
25
 
...
2
3
4
 
5
6
7
8
9
10
 
 
 
 
 
 
 
 
11
 
 
12
13
14
15
 
16
17
0
@@ -2,23 +2,15 @@ module Treetop
0
   module Runtime
0
     class TerminalParseFailure
0
       attr_reader :index, :expected_string
0
-
0
+
0
       def initialize(index, expected_string)
0
         @index = index
0
         @expected_string = expected_string
0
       end
0
 
0
- def line
0
- input.line_of(index)
0
- end
0
-
0
- def column
0
- input.column_of(index)
0
- end
0
-
0
       def to_s
0
- "String matching #{expected_string} expected at line #{line}, column #{column} (index #{index})."
0
- end
0
+ "String matching #{expected_string} expected."
0
+ end
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.