2017-04-08 11:11:52 +02:00
|
|
|
require_relative "ruby_compiler"
|
|
|
|
|
|
|
|
module Vool
|
|
|
|
class VoolCompiler
|
2017-08-30 16:21:13 +02:00
|
|
|
|
2018-03-12 12:53:16 +01:00
|
|
|
def self.ruby_to_vool( ruby_source )
|
2017-04-08 11:11:52 +02:00
|
|
|
statements = RubyCompiler.compile( ruby_source )
|
2018-03-15 08:16:56 +01:00
|
|
|
statements = statements.normalize
|
|
|
|
#statements.create_objects
|
2017-04-08 11:11:52 +02:00
|
|
|
statements
|
|
|
|
end
|
2018-03-12 13:43:26 +01:00
|
|
|
def self.ruby_to_mom(source)
|
2018-03-13 08:00:51 +01:00
|
|
|
statements = self.ruby_to_vool(source)
|
|
|
|
statements.to_mom(nil)
|
2018-03-12 13:43:26 +01:00
|
|
|
end
|
2017-04-08 11:11:52 +02:00
|
|
|
end
|
|
|
|
end
|