move type resolution to compiler

from risc_value.
also unite mock compilers
This commit is contained in:
Torsten Ruger
2018-07-16 11:46:18 +03:00
parent e3673e579c
commit 3343017dba
12 changed files with 43 additions and 56 deletions

View File

@ -1,21 +1,6 @@
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 )
end
def reset_regs
end
def add_constant(c)
end
end
class InstructionMock < Instruction
end
end