0
@@ -129,7 +129,13 @@ module Treetop
0
- r2 = parse_terminal('module', SyntaxNode)
0
+ if input.index('module', index) == index
0
+ r2 = (SyntaxNode).new(input, index...(index + 6))
0
+ terminal_parse_failure('module')
0
@@ -189,7 +195,13 @@ module Treetop
0
- r13 = parse_terminal('end', SyntaxNode)
0
+ if input.index('end', index) == index
0
+ r13 = (SyntaxNode).new(input, index...(index + 3))
0
+ terminal_parse_failure('end')
0
@@ -244,7 +256,13 @@ module Treetop
0
- r1 = parse_terminal('grammar', SyntaxNode)
0
+ if input.index('grammar', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 7))
0
+ terminal_parse_failure('grammar')
0
@@ -267,7 +285,13 @@ module Treetop
0
- r8 = parse_terminal('end', SyntaxNode)
0
+ if input.index('end', index) == index
0
+ r8 = (SyntaxNode).new(input, index...(index + 3))
0
+ terminal_parse_failure('end')
0
@@ -417,7 +441,14 @@ module Treetop
0
- r7 = parse_terminal('', SyntaxNode, DeclarationSequence3)
0
+ if input.index('', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 0))
0
+ r7.extend(DeclarationSequence3)
0
+ terminal_parse_failure('')
0
@@ -480,7 +511,13 @@ module Treetop
0
- r1 = parse_terminal('include', SyntaxNode)
0
+ if input.index('include', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 7))
0
+ terminal_parse_failure('include')
0
@@ -501,7 +538,13 @@ module Treetop
0
- r7 = parse_terminal('::', SyntaxNode)
0
+ if input.index('::', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure('::')
0
@@ -566,7 +609,13 @@ module Treetop
0
- r1 = parse_terminal('rule', SyntaxNode)
0
+ if input.index('rule', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 4))
0
+ terminal_parse_failure('rule')
0
@@ -584,7 +633,13 @@ module Treetop
0
- r7 = parse_terminal('end', SyntaxNode)
0
+ if input.index('end', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 3))
0
+ terminal_parse_failure('end')
0
@@ -690,7 +745,13 @@ module Treetop
0
- r6 = parse_terminal('/', SyntaxNode)
0
+ if input.index('/', index) == index
0
+ r6 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('/')
0
@@ -1158,7 +1219,13 @@ module Treetop
0
- r6 = parse_terminal(':', SyntaxNode)
0
+ if input.index(':', index) == index
0
+ r6 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure(':')
0
@@ -1172,7 +1239,14 @@ module Treetop
0
- r7 = parse_terminal('', SyntaxNode, Label3)
0
+ if input.index('', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 0))
0
+ terminal_parse_failure('')
0
@@ -1337,7 +1411,13 @@ module Treetop
0
- r0 = parse_terminal('?', Optional)
0
+ if input.index('?', index) == index
0
+ r0 = (Optional).new(input, index...(index + 1))
0
+ terminal_parse_failure('?')
0
node_cache[:optional_suffix][start_index] = r0
0
@@ -1410,11 +1490,23 @@ module Treetop
0
- r1 = parse_terminal('+', OneOrMore)
0
+ if input.index('+', index) == index
0
+ r1 = (OneOrMore).new(input, index...(index + 1))
0
+ terminal_parse_failure('+')
0
- r2 = parse_terminal('*', ZeroOrMore)
0
+ if input.index('*', index) == index
0
+ r2 = (ZeroOrMore).new(input, index...(index + 1))
0
+ terminal_parse_failure('*')
0
@@ -1437,11 +1529,23 @@ module Treetop
0
- r1 = parse_terminal('&', AndPredicate)
0
+ if input.index('&', index) == index
0
+ r1 = (AndPredicate).new(input, index...(index + 1))
0
+ terminal_parse_failure('&')
0
- r2 = parse_terminal('!', NotPredicate)
0
+ if input.index('!', index) == index
0
+ r2 = (NotPredicate).new(input, index...(index + 1))
0
+ terminal_parse_failure('!')
0
@@ -1509,7 +1613,13 @@ module Treetop
0
- r1 = parse_terminal('(', SyntaxNode)
0
+ if input.index('(', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('(')
0
@@ -1531,7 +1641,13 @@ module Treetop
0
- r7 = parse_terminal(')', SyntaxNode)
0
+ if input.index(')', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure(')')
0
@@ -1627,25 +1743,20 @@ module Treetop
0
- r1 = _nt_
single_quoted_string
0
+ r1 = _nt_
quoted_string
0
- r2 = _nt_
double_quoted_string0
+ r2 = _nt_
character_class0
- r3 = _nt_
character_class0
+ r3 = _nt_
anything_symbol0
- r4 = _nt_anything_symbol
0
@@ -1655,10 +1766,49 @@ module Treetop
0
+ cached = node_cache[:quoted_string][index]
0
+ @index = cached.interval.end
0
+ r1 = _nt_single_quoted_string
0
+ r0.extend(QuotedString0)
0
+ r2 = _nt_double_quoted_string
0
+ r0.extend(QuotedString0)
0
+ node_cache[:quoted_string][start_index] = r0
0
module DoubleQuotedString0
0
module DoubleQuotedString1
0
def _nt_double_quoted_string
0
@@ -1670,14 +1820,26 @@ module Treetop
0
- r1 = parse_terminal('"', SyntaxNode)
0
+ if input.index('"', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('"')
0
- r5 = parse_terminal('"', SyntaxNode)
0
+ if input.index('"', index) == index
0
+ r5 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('"')
0
@@ -1687,11 +1849,23 @@ module Treetop
0
- r7 = parse_terminal("\\\\", SyntaxNode)
0
+ if input.index("\\\\", index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure("\\\\")
0
- r8 = parse_terminal('\"', SyntaxNode)
0
+ if input.index('\"', index) == index
0
+ r8 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure('\"')
0
@@ -1722,7 +1896,13 @@ module Treetop
0
r2 = SyntaxNode.new(input, i2...index, s2)
0
- r10 = parse_terminal('"', SyntaxNode)
0
+ if input.index('"', index) == index
0
+ r10 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('"')
0
@@ -1743,6 +1923,10 @@ module Treetop
0
module SingleQuotedString1
0
def _nt_single_quoted_string
0
@@ -1754,14 +1938,26 @@ module Treetop
0
- r1 = parse_terminal("'", SyntaxNode)
0
+ if input.index("'", index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure("'")
0
- r5 = parse_terminal("'", SyntaxNode)
0
+ if input.index("'", index) == index
0
+ r5 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure("'")
0
@@ -1771,11 +1967,23 @@ module Treetop
0
- r7 = parse_terminal("\\\\", SyntaxNode)
0
+ if input.index("\\\\", index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure("\\\\")
0
- r8 = parse_terminal("\\'", SyntaxNode)
0
+ if input.index("\\'", index) == index
0
+ r8 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure("\\'")
0
@@ -1806,7 +2014,13 @@ module Treetop
0
r2 = SyntaxNode.new(input, i2...index, s2)
0
- r10 = parse_terminal("'", SyntaxNode)
0
+ if input.index("'", index) == index
0
+ r10 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure("'")
0
@@ -1848,14 +2062,26 @@ module Treetop
0
- r1 = parse_terminal('[', SyntaxNode)
0
+ if input.index('[', index) == index
0
+ r1 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure('[')
0
- r5 = parse_terminal(']', SyntaxNode)
0
+ if input.index(']', index) == index
0
+ r5 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure(']')
0
@@ -1865,7 +2091,13 @@ module Treetop
0
- r7 = parse_terminal('\]', SyntaxNode)
0
+ if input.index('\]', index) == index
0
+ r7 = (SyntaxNode).new(input, index...(index + 2))
0
+ terminal_parse_failure('\]')
0
@@ -1900,7 +2132,13 @@ module Treetop
0
- r9 = parse_terminal(']', SyntaxNode)
0
+ if input.index(']', index) == index
0
+ r9 = (SyntaxNode).new(input, index...(index + 1))
0
+ terminal_parse_failure(']')
0
@@ -1926,7 +2164,13 @@ module Treetop