summaryrefslogtreecommitdiff
path: root/grammar.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-05-23 20:06:34 +0200
committerPatrick Simianer <p@simianer.de>2014-05-23 20:06:34 +0200
commitd76b8947471087992ac945bdb5eb5620869672d1 (patch)
tree060dbb8976fd9dddee5cb69c9108b2a6c252d384 /grammar.rb
parentea5a910c2e1cb8e22a6d21bc2566428469a6f53b (diff)
before new visit
Diffstat (limited to 'grammar.rb')
-rw-r--r--grammar.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar.rb b/grammar.rb
index b7d2408..52d0fba 100644
--- a/grammar.rb
+++ b/grammar.rb
@@ -70,7 +70,7 @@ class Grammar
def initialize fn
@rules = []; @startn = []; @startt = [] ;@flat = []
ReadFile.readlines_strip(fn).each_with_index { |s,i|
- STDERR.write '.'; STDERR.write "\n" if (i+1)%80==0
+ STDERR.write '.'; STDERR.write " #{i+1}\n" if (i+1)%80==0
@rules << Rule.from_s(s)
if @rules.last.rhs.first.class == NT
@startn << @rules.last