From b196810e897a9fd09e2418a48f3e13d1315f39ba Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Fri, 22 Aug 2014 17:40:09 +0300 Subject: [PATCH] adjusted module name accordingly --- lib/register/code.rb | 2 +- lib/register/instruction.rb | 2 +- lib/register/integer.rb | 2 +- lib/register/mystery.rb | 2 +- lib/register/passes.rb | 2 +- lib/register/reference.rb | 2 +- lib/register/register_machine.rb | 2 +- lib/register/register_reference.rb | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/register/code.rb b/lib/register/code.rb index 54cc062d..93ee1be2 100644 --- a/lib/register/code.rb +++ b/lib/register/code.rb @@ -1,4 +1,4 @@ -module Vm +module Register # Base class for anything that we can assemble # Derived classes include instructions and constants(data) diff --git a/lib/register/instruction.rb b/lib/register/instruction.rb index 4b376e36..2fa2df93 100644 --- a/lib/register/instruction.rb +++ b/lib/register/instruction.rb @@ -1,5 +1,5 @@ require_relative "code" -module Vm +module Register # Because the idea of what one instruction does, does not always map one to one to real machine # instructions, and instruction may link to another instruction thus creating an arbitrary list diff --git a/lib/register/integer.rb b/lib/register/integer.rb index b4564742..e0a47c45 100644 --- a/lib/register/integer.rb +++ b/lib/register/integer.rb @@ -1,4 +1,4 @@ -module Vm +module Register class Integer < Word # needs to be here as Word's constructor is private (to make it abstract) def initialize reg diff --git a/lib/register/mystery.rb b/lib/register/mystery.rb index bb10a2e4..de0895e6 100644 --- a/lib/register/mystery.rb +++ b/lib/register/mystery.rb @@ -1,4 +1,4 @@ -module Vm +module Register class Mystery < Word # needs to be here as Word's constructor is private (to make it abstract) def initilize reg diff --git a/lib/register/passes.rb b/lib/register/passes.rb index fd9633eb..34c1dc7a 100644 --- a/lib/register/passes.rb +++ b/lib/register/passes.rb @@ -1,4 +1,4 @@ -module Vm +module Register # Passes, or BlockPasses, could have been procs that just get each block passed. # Instead they are proper objects in case they want to save state. # The idea is diff --git a/lib/register/reference.rb b/lib/register/reference.rb index 778e492f..997ab08b 100644 --- a/lib/register/reference.rb +++ b/lib/register/reference.rb @@ -1,4 +1,4 @@ -module Vm +module Register class Reference < Word # needs to be here as Word's constructor is private (to make it abstract) def initialize reg , clazz = nil diff --git a/lib/register/register_machine.rb b/lib/register/register_machine.rb index f8979396..934d41f1 100644 --- a/lib/register/register_machine.rb +++ b/lib/register/register_machine.rb @@ -1,4 +1,4 @@ -module Vm +module Register # Our virtual c-machine has a number of registers of a given size and uses a stack # So much so standard diff --git a/lib/register/register_reference.rb b/lib/register/register_reference.rb index 7cf49df0..4fd71d58 100644 --- a/lib/register/register_reference.rb +++ b/lib/register/register_reference.rb @@ -1,4 +1,4 @@ -module Vm +module Register # RegisterReference is not the name for a register, "only" for a certain use of it. # In a way it is like a variable name, a storage location. The location is a register off course,