summaryrefslogtreecommitdiff
path: root/prototype/grammar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'prototype/grammar.rb')
-rw-r--r--prototype/grammar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/prototype/grammar.rb b/prototype/grammar.rb
index abccb15..4aebd95 100644
--- a/prototype/grammar.rb
+++ b/prototype/grammar.rb
@@ -120,9 +120,9 @@ class Grammar
@rules.map { |r| r.lhs.symbol }.select { |s| s != 'S' }.uniq.each { |symbol|
@rules << Rule.new(NT.new('S'), [NT.new(symbol, 0)], [NT.new(symbol, 0)], [0])
@start_nt << @rules.last
- @rules << Rule.new(NT.new('S'), [NT.new('S', 0), NT.new('X', 1)], [NT.new('S', 0), NT.new('X', 1)], [0, 1])
- @start_nt << @rules.last
}
+ @rules << Rule.new(NT.new('S'), [NT.new('S', 0), NT.new('X', 1)], [NT.new('S', 0), NT.new('X', 1)], [0, 1])
+ @start_nt << @rules.last
end
def add_pass_through_rules a