math node went too, more clarity
This commit is contained in:
parent
c87967c95d
commit
82ea5730f3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user