move compiler to typed
starting to get rid of soml, bit by bit
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
require_relative '../../helper'
|
||||
require 'parslet/convenience'
|
||||
|
||||
Soml::Compiler.class_eval do
|
||||
Typed::Compiler.class_eval do
|
||||
def set_main main
|
||||
@clazz = Register.machine.space.get_class_by_name :Object
|
||||
@method = main
|
||||
@ -23,7 +23,7 @@ module ExpressionHelper
|
||||
parts = Parser::Transform.new.apply(syntax)
|
||||
codes = Soml.ast_to_code parts
|
||||
#puts parts.inspect
|
||||
compiler = Soml::Compiler.new
|
||||
compiler = Typed::Compiler.new
|
||||
set_main(compiler)
|
||||
produced = compiler.process( codes )
|
||||
assert @output , "No output given"
|
||||
|
@ -22,7 +22,7 @@ module RuntimeTests
|
||||
|
||||
def load_program
|
||||
@machine = Register.machine.boot
|
||||
Soml::Compiler.load_parfait
|
||||
Typed::Compiler.load_parfait
|
||||
@machine.parse_and_compile main()
|
||||
@machine.collect
|
||||
end
|
||||
|
@ -12,7 +12,7 @@ module ParfaitTests
|
||||
def setup
|
||||
@stdout = ""
|
||||
@machine = Register.machine.boot
|
||||
Soml::Compiler.load_parfait
|
||||
Typed::Compiler.load_parfait
|
||||
end
|
||||
|
||||
def main
|
||||
|
Reference in New Issue
Block a user