add source to instruction
for debug
This commit is contained in:
@ -15,5 +15,9 @@ module Virtual
|
||||
def word_length
|
||||
4
|
||||
end
|
||||
|
||||
def to_s
|
||||
"#{self.class.name}( method: #{method.name})"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -35,6 +35,8 @@ module Virtual
|
||||
class Machine
|
||||
|
||||
FIRST_PASS = "Virtual::SendImplementation"
|
||||
LAST_PASS = "Virtual::SetOptimisation"
|
||||
|
||||
def initialize
|
||||
@parser = Parser::Salama.new
|
||||
@passes = [ FIRST_PASS ]
|
||||
|
Reference in New Issue
Block a user