add normalizing and method compilation phases (empty)
This commit is contained in:
16
lib/melon/compilers/method_compiler.rb
Normal file
16
lib/melon/compilers/method_compiler.rb
Normal file
@ -0,0 +1,16 @@
|
||||
module Melon
|
||||
module Compilers
|
||||
|
||||
class MethodCompiler < AST::Processor
|
||||
|
||||
def initialize( ruby_method )
|
||||
@ruby_method
|
||||
end
|
||||
|
||||
def handler_missing(node)
|
||||
raise "No handler for #{node}"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
12
lib/melon/compilers/normalizer.rb
Normal file
12
lib/melon/compilers/normalizer.rb
Normal file
@ -0,0 +1,12 @@
|
||||
module Melon
|
||||
module Compilers
|
||||
|
||||
class Normalizer < AST::Processor
|
||||
|
||||
def initialize( ruby_method )
|
||||
@ruby_method
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user