parse-framework 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/parse.rb +2 -3
- metadata +1 -1
data/lib/parse.rb
CHANGED
@@ -190,9 +190,9 @@ class Parse
|
|
190
190
|
old_rule_start_pos = @rule_start_pos
|
191
191
|
@rule_start_pos = pos
|
192
192
|
begin
|
193
|
-
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: entering rule :#{name}
|
193
|
+
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: entering rule :#{name}"); end
|
194
194
|
r = instance_eval(&body)
|
195
|
-
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: exiting rule :#{name} #{if r.nil? then "(with nil)" end}"); end
|
195
|
+
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: exiting rule :#{name} #{if r.nil? then "(with nil)" else "(with #{r.class.to_s})" end}"); end
|
196
196
|
r
|
197
197
|
ensure
|
198
198
|
@rule_start_pos = old_rule_start_pos
|
@@ -609,4 +609,3 @@ end
|
|
609
609
|
# rescue Parse::Error => e
|
610
610
|
# puts "error: #{e.pos.file}:#{e.pos.line}:#{e.pos.column}: #{e.message}"
|
611
611
|
# end
|
612
|
-
|