ff22c17784
new compile module does just that: compile Dispatch with visitor pattern no more patching into ast
7 lines
196 B
Ruby
7 lines
196 B
Ruby
module Compiler
|
|
# list - attr_reader :expressions
|
|
def compile_list expession , method , message
|
|
expession.expressions.collect { |part| part.compile( method, message ) }
|
|
end
|
|
end
|