From 8949948243cb709e65ec172b3014c9e6a3181ed3 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sat, 20 Sep 2014 16:24:39 +0100 Subject: prototype: fixed grammar handling --- prototype/grammar.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'prototype/grammar.rb') 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 -- cgit v1.2.3