3247c2036c
when iterating over tree. Much cleaner, less hokuspukus methods that are noops Mom is coming back out, but not linked yet
18 lines
386 B
Ruby
18 lines
386 B
Ruby
require_relative "ruby_compiler"
|
|
|
|
module Vool
|
|
class VoolCompiler
|
|
|
|
def self.ruby_to_vool( ruby_source )
|
|
statements = RubyCompiler.compile( ruby_source )
|
|
statements = statements.normalize
|
|
statements.create_objects
|
|
statements
|
|
end
|
|
def self.ruby_to_mom(source)
|
|
statements = self.ruby_to_vool(source)
|
|
statements.to_mom(nil)
|
|
end
|
|
end
|
|
end
|