diff --git a/lib/asm/nodes.rb b/lib/asm/nodes.rb index 97a21b59..b9a76d0d 100644 --- a/lib/asm/nodes.rb +++ b/lib/asm/nodes.rb @@ -11,12 +11,6 @@ module Asm attr_accessor :type, :value, :argument end - class MathNode < Node - attr_accessor :left, :right, :op - alias_method :argument, :left - alias_method :argument=, :left= - end - class RegisterNode < Node attr_accessor :name def initialize name diff --git a/unused/parser.rb b/unused/parser.rb index 3bdeafbe..ba65068a 100644 --- a/unused/parser.rb +++ b/unused/parser.rb @@ -13,6 +13,11 @@ end class LabelNode < Node attr_accessor :name end +class MathNode < Node + attr_accessor :left, :right, :op + alias_method :argument, :left + alias_method :argument=, :left= +end module Asm