Torsten Rüger
8df2e4bf08
Just added the compiler, that can parse Slot directly into SlotMachine code (no language layer in between) Still unclear wheather the Maker is a thing, but since it was in the Language layer i did not remove it (yet) Otherwise just the compiler and all the tests, moved from the slot_language.
28 lines
967 B
Ruby
28 lines
967 B
Ruby
# The *essential* step from sol to risc, is the one from a language to a machine.
|
|
# From sols 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 dynamic call, just objects and jump.
|
|
# Machine capabilities (instructions) for basic operations.
|
|
# Use of macros for higher level.
|
|
|
|
require_relative "slotted"
|
|
require_relative "slot"
|
|
require_relative "slotted_message"
|
|
require_relative "slotted_constant"
|
|
require_relative "slotted_object"
|
|
require_relative "instruction"
|
|
require_relative "slot_collection"
|
|
require_relative "callable_compiler"
|
|
require_relative "method_compiler"
|
|
require_relative "block_compiler"
|
|
require_relative "macro/macro"
|
|
require_relative "slot_compiler"
|
|
require_relative "macro_maker"
|