More rename cleanp

This commit is contained in:
2019-10-03 21:07:55 +03:00
parent c43436f35a
commit aa9fc8bc81
57 changed files with 130 additions and 140 deletions

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Comparison < Macro
attr_reader :operator
def initialize(name , operator)

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Div10 < Macro
def to_risc(compiler)
s = "div_10 "

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Div4 < Macro
def to_risc(compiler)
builder = compiler.builder(compiler.source)

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Exit < Macro
def to_risc(compiler)
builder = compiler.builder(compiler.source)

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class GetInternalByte < Macro
def to_risc(compiler)
builder = compiler.builder(compiler.source)

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class GetInternalWord < Macro
def to_risc(compiler)
compiler.builder(compiler.source).build do

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
# Init "method" is the first thing that happens in the machine
# There is an inital jump to it, but that's it, no setup, no nothing
#
@ -20,7 +20,7 @@ module Mom
end
builder.reset_names
# Set up the call to main, with space as receiver
Mom::MessageSetup.new(main).build_with( builder )
SlotMachine::MessageSetup.new(main).build_with( builder )
builder.build do
message << message[:next_message]
space? << Parfait.object_space

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Macro < Instruction
def to_s

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class MethodMissing < Macro
attr_reader :name

View File

@ -1,3 +1,3 @@
module Mom
module SlotMachine
end

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class IntOperator < Macro
attr_reader :operator
def initialize(name , operator)

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class Putstring < Macro
def to_risc(compiler)
builder = compiler.builder(compiler.source)
@ -7,7 +7,7 @@ module Mom
word! << message[:receiver]
integer! << word[Parfait::Word.get_length_index]
end
Mom::Macro.emit_syscall( builder , :putstring )
SlotMachine::Macro.emit_syscall( builder , :putstring )
compiler
end
end

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class SetInternalByte < Macro
def to_risc(compiler)
compiler.builder(compiler.source).build do

View File

@ -1,4 +1,4 @@
module Mom
module SlotMachine
class SetInternalWord < Macro
def to_risc(compiler)
compiler.builder(compiler.source).build do