create vm file to require vm parts

This commit is contained in:
Torsten Ruger 2017-01-18 08:45:42 +02:00
parent 7abd777d05
commit a39fc76a12
3 changed files with 13 additions and 2 deletions

View File

@ -7,7 +7,7 @@ end
require "register/padding"
require "register/positioned"
require "vm/method_compiler"
require "vm"
require "vm/parfait"
require "register/machine"

12
lib/vm.rb Normal file
View File

@ -0,0 +1,12 @@
# The Vm Module expresses a medium level virtual machine.
# It is the level between the higher ruby abstraction and the lower risc level.
#
# Historically it has grown out of a language abtraction that was not unlike c,
# in that it has tyes and everything is known at compile time.
# No method dispatch, just calling.
# In some ways it is more like c++ as it knows about classes and in fact everything is an
# object.
module Vm
end
require_relative "vm/tree"
require_relative "vm/method_compiler"

View File

@ -1,4 +1,3 @@
require_relative "tree"
require_relative "method_compiler/assignment"
require_relative "method_compiler/basic_values"
require_relative "method_compiler/call_site"