math node went too, more clarity

This commit is contained in:
Torsten Ruger 2014-04-21 17:39:10 +03:00
parent c87967c95d
commit 82ea5730f3
2 changed files with 5 additions and 6 deletions

View File

@ -11,12 +11,6 @@ module Asm
attr_accessor :type, :value, :argument attr_accessor :type, :value, :argument
end end
class MathNode < Node
attr_accessor :left, :right, :op
alias_method :argument, :left
alias_method :argument=, :left=
end
class RegisterNode < Node class RegisterNode < Node
attr_accessor :name attr_accessor :name
def initialize name def initialize name

View File

@ -13,6 +13,11 @@ end
class LabelNode < Node class LabelNode < Node
attr_accessor :name attr_accessor :name
end end
class MathNode < Node
attr_accessor :left, :right, :op
alias_method :argument, :left
alias_method :argument=, :left=
end
module Asm module Asm