lib/sexp_processor.rb in ParseTree-1.5.0 vs lib/sexp_processor.rb in ParseTree-1.6.0
- old
+ new
@@ -135,11 +135,11 @@
def initialize
@default_method = nil
@warn_on_default = true
@auto_shift_type = false
@strict = false
- @unsupported = []
+ @unsupported = [:alloca, :cfunc, :cref, :evstr, :ifunc, :last, :memo, :newline, :opt_n, :method] # internal nodes that you can't get to
@unsupported_checked = false
@debug = {}
@expected = Sexp
@require_empty = true
@sexp_accessors = {}
@@ -215,10 +215,10 @@
raise NotEmptyError, msg
end
exp = new_exp
end
- # now do a pass with the real processor (or generic
+ # now do a pass with the real processor (or generic)
meth = @processors[type] || @default_method
if meth then
if @warn_on_default and meth == @default_method then
$stderr.puts "WARNING: Using default method #{meth} for #{type}"