lib/ruby_parser/bm_sexp_processor.rb
##
# A fairly generic processor for a dummy node. Dummy nodes are used
# when your processor is doing a complicated rewrite that replaces
# the current sexp with multiple sexps.
#
# Bogus Example:
#
#   def process_something(exp)
#     return s(:dummy, process(exp), s(:extra, 42))
#   end
A fairly generic processor for a dummy node. Dummy nodes are used
when your processor is doing a complicated rewrite that replaces
the current sexp with multiple sexps.

Bogus Example.


A fairly generic processor for a dummy node . Dummy nodes are used when your processor is doing a complicated rewrite that replaces the current sexp with multiple sexps . Bogus Example .
def process_dummy(exp)
    result = @expected.new(:dummy) rescue @expected.new
    until exp.empty? do
      result << self.process(exp.shift)
    end
    result
  end
def process_dummy ( exp ) result = @expected . new ( :dummy ) rescue @expected . new until exp . empty? do result << self . process ( exp . shift ) end result end
A fairly generic processor for a dummy node.
A fairly generic processor for a dummy node .
exp