bb49f1be78
ended up not even using the class, it just came from there It actually compiles methods, and it turns out is the point where builtin comes into the picture as it's boot process also returns method compilers
19 lines
630 B
Ruby
19 lines
630 B
Ruby
# The *essential* step from vool to risc, is the one from a language to a machine.
|
|
# From vools statements that hang in the air, to an instruction set.
|
|
#
|
|
# ### List based: Bit like Risc, just no registers
|
|
#
|
|
# ### Use object memory : object to object transfer + no registers
|
|
#
|
|
# ### Instruction based
|
|
#
|
|
# So a machine rather than a language. No control structures, but compare and jump instructions.
|
|
# No send or call, just objects and jump.
|
|
# Machine capabilities (instructions) for basic operations. Use of macros for higher level.
|
|
|
|
module Mom
|
|
end
|
|
|
|
require_relative "instruction/instruction.rb"
|
|
require_relative "mom_compiler"
|