rubyx/lib/vool/vool_compiler.rb
Torsten Ruger 3702411043 first propper hoisting test
had to change course, normalising and object creation is not possible
in one go
have to now generate random tmp vars  that will have to be picked up
later (sorted by tmp_ prefix?)
2018-03-15 12:46:56 +05:30

18 lines
387 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