summaryrefslogtreecommitdiff
path: root/prototype/grammar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'prototype/grammar.rb')
-rw-r--r--prototype/grammar.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/prototype/grammar.rb b/prototype/grammar.rb
index 42ffbc0..05224f4 100644
--- a/prototype/grammar.rb
+++ b/prototype/grammar.rb
@@ -126,6 +126,7 @@ class Grammar
end
def add_pass_through a
+ return if !a
a.each { |word|
@rules << Rule.new(NT.new('X'), [T.new(word)], [T.new(word)])
@flat << @rules.last