Class: Vm::VmCodeParser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/hackasm/vm/vm_code_parser.rb

Constant Summary collapse

COMMENT_DELIMITER =
"//".freeze
ARITHMETIC_OPERATIONS =
%w[add sub neg eq gt lt and or not]
MEMORY_ACCESS_OPERATIONS =
%w[push pop]
MEMORY_SEGMENTS =
%w[argument local static constant this that pointer temp]