basic html skeleton, classes and registers

This commit is contained in:
Torsten Ruger
2015-07-16 10:43:49 +03:00
parent 1d005862ac
commit 1efce561d7
4 changed files with 53 additions and 41 deletions

View File

@ -1,26 +0,0 @@
require "salama"
require_relative "registers_view"
require_relative "object_view"
require_relative "space_view"
class MainView
def initialize
registers = RegisterView.new(max)
ParseTask.parse(1).then do |result|
is = Ast::Expression.from_basic(result)
Virtual::Compiler.compile( is , Virtual.machine.space.get_main )
Virtual.machine.run_before Virtual::Machine::FIRST_PASS
end.fail do |error|
raise "Error: #{error}"
end
space = SpaceView.new(max)
end
end

View File

@ -1,8 +0,0 @@
class RegisterView
@@register_names = (0..8).collect {|i| "r#{i}"}
def initialize max
end
end