move compiler to typed

starting to get rid of soml, bit by bit
This commit is contained in:
Torsten Ruger
2016-12-08 15:25:20 +02:00
parent c3a28d2abc
commit da553f996f
30 changed files with 36 additions and 35 deletions

View File

@ -7,7 +7,7 @@ module Register
# so it is responsible for initial setup
def __init__ context
source = "__init__"
compiler = Soml::Compiler.new.create_method(:Kernel,:__init__ )
compiler = Typed::Compiler.new.create_method(:Kernel,:__init__ )
# no method enter or return (automatically added), remove
new_start = Label.new(source , source )
compiler.method.instructions = new_start
@ -34,7 +34,7 @@ module Register
end
def exit context
compiler = Soml::Compiler.new.create_method(:Kernel,:exit ).init_method
compiler = Typed::Compiler.new.create_method(:Kernel,:exit ).init_method
emit_syscall( compiler , :exit )
return compiler.method
end