ff22c17784
new compile module does just that: compile Dispatch with visitor pattern no more patching into ast
15 lines
243 B
Ruby
15 lines
243 B
Ruby
module Compiler
|
|
|
|
# attr_reader :values
|
|
def compile_array expession, context
|
|
to.do
|
|
end
|
|
# attr_reader :key , :value
|
|
def compile_association context
|
|
to.do
|
|
end
|
|
def compile_hash context
|
|
to.do
|
|
end
|
|
end
|