Class: Haxor::Compiler::Component::Other

Inherits:
Base
  • Object
show all
Defined in:
lib/haxor/compiler/component/other.rb

Instance Attribute Summary

Attributes inherited from Base

#compiler

Instance Method Summary collapse

Methods inherited from Base

#add, #bind_cmd, #offset?, #offset_flags, #parse_value, #strip_offset

Instance Method Details

#cmd_label(*args) ⇒ Object



15
16
17
# File 'lib/haxor/compiler/component/other.rb', line 15

def cmd_label(*args)
  add Token::Label.new(args[0])
end

#cmd_rem(*_args) ⇒ Object



11
12
13
# File 'lib/haxor/compiler/component/other.rb', line 11

def cmd_rem(*_args)
  # nothing
end

#register ⇒ Object



5
6
7
8
9
# File 'lib/haxor/compiler/component/other.rb', line 5

def register
  bind_cmd 'label', :cmd_label
  bind_cmd 'rem', :cmd_rem
  bind_cmd '#', :cmd_rem
end