add code options

this time inline (not server generated) into the switch view
This commit is contained in:
Torsten Ruger
2016-12-27 20:31:41 +02:00
parent a6c63f4e57
commit 7be8e040bb
3 changed files with 30 additions and 25 deletions

View File

@ -38,13 +38,7 @@ class MainView < ListView
include AST::Sexp
def initialize
machine = Register.machine.boot
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
Register.machine.boot
@interpreter = Register::Interpreter.new
super( [SwitchView.new(@interpreter) ,
SourceView.new(@interpreter) ,