parse-framework 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/parse.rb +1 -3
- metadata +1 -1
data/lib/parse.rb
CHANGED
@@ -21,8 +21,6 @@ class Parse
|
|
21
21
|
#
|
22
22
|
# parses +text+.
|
23
23
|
#
|
24
|
-
# If $DEBUG == true then it prints {Parse.rule} calls to stdout.
|
25
|
-
#
|
26
24
|
# @param [String] text
|
27
25
|
# @param [String] file file the +text+ is taken from.
|
28
26
|
# @raise [Parse::Error, IOError]
|
@@ -192,7 +190,7 @@ class Parse
|
|
192
190
|
old_rule_start_pos = @rule_start_pos
|
193
191
|
@rule_start_pos = pos
|
194
192
|
begin
|
195
|
-
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: entering rule :#{name}"); end
|
193
|
+
if $DEBUG then STDERR.puts("#{pos.file}:#{pos.line+1}:#{pos.column+1}: entering rule :#{name} (with obj)"); end
|
196
194
|
r = instance_eval(&body)
|
197
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
|
198
196
|
r
|