63b55f2aa4
must get method to be private more tell, not ask
22 lines
437 B
Ruby
22 lines
437 B
Ruby
require_relative '../helper'
|
|
|
|
module Mom
|
|
class CompilerMock
|
|
# resolve a symbol to a type. Allowed symbols are :frame , :receiver and arguments
|
|
# which return the respective types, otherwise nil
|
|
def resolve_type( name )
|
|
return nil
|
|
end
|
|
def use_reg( type )
|
|
Risc.tmp_reg(type , nil)
|
|
end
|
|
def reset_regs
|
|
|
|
end
|
|
def add_constant(c)
|
|
end
|
|
end
|
|
class InstructionMock < Instruction
|
|
end
|
|
end
|