getting basics to work

This commit is contained in:
Torsten Ruger
2016-12-25 17:49:09 +02:00
parent 0aafeeeb22
commit cc6a050250
3 changed files with 20 additions and 12 deletions

View File

@ -39,7 +39,10 @@ class MainView < ListView
def initialize
machine = Register.machine.boot
code = s(:statements, s(:return, s(:operator_value, :+, s(:int, 5), s(:int, 7))))
code = s(:statements, s(:call,
s(:name, :set_internal_byte),
s(:arguments, s(:int, 1), s(:int, 104)),
s(:receiver, s(:string, "Hello"))))
Typed.compile( code )
machine.collect
@interpreter = Register::Interpreter.new