From 719a996f9acfefa5ff3dc49d36e0ef6e57e74fe3 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 10 Jun 2014 15:04:19 +0200 Subject: fix --- grammar.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'grammar.rb') diff --git a/grammar.rb b/grammar.rb index ea16425..0b2bc61 100644 --- a/grammar.rb +++ b/grammar.rb @@ -33,7 +33,8 @@ class NT end def to_s - "NT<#{@symbol},#{@index}>" + return "NT<#{@symbol},#{@index}>" if @index>=0 + return "NT<#{@symbol}>" end end -- cgit v1.2.3