def initialize
@default_method = nil
@warn_on_default = true
@auto_shift_type = false
@strict = false
@unsupported = [:alloca, :cfunc, :cref, :ifunc, :last, :memo,
:newline, :opt_n, :method]
@unsupported_checked = false
@debug = {}
@expected = Sexp
@require_empty = true
@exceptions = {}
@processors = {}
@rewriters = {}
@context = []
public_methods.each do |name|
case name
when /^process_(.*)/ then
@processors[$1.intern] = name.intern
when /^rewrite_(.*)/ then
@rewriters[$1.intern] = name.intern
end
end
end