2017-01-14 20:05:58 +02:00
|
|
|
module Melon
|
|
|
|
|
2017-01-16 17:24:32 +02:00
|
|
|
module Passes
|
2017-01-14 20:05:58 +02:00
|
|
|
class TotalProcessor < AST::Processor
|
|
|
|
|
|
|
|
def handler_missing(node)
|
|
|
|
node.children.each do |kid |
|
|
|
|
process(kid) if kid.is_a?(AST::Node)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|