Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssemblyWriter ¶
type AssemblyWriter interface { WriteArithmetic(command string, comparisonsCount *int) WritePushPop(command parser.CommandType, segment string, index int) CloseAssemblyFile() }
func NewHackAssemblyWriter ¶
func NewHackAssemblyWriter(filename string) AssemblyWriter
type HackAssemblyWriter ¶
func (*HackAssemblyWriter) CloseAssemblyFile ¶
func (w *HackAssemblyWriter) CloseAssemblyFile()
func (*HackAssemblyWriter) WriteArithmetic ¶
func (w *HackAssemblyWriter) WriteArithmetic(command string, comparisonsCount *int)
func (*HackAssemblyWriter) WritePushPop ¶
func (w *HackAssemblyWriter) WritePushPop(command parser.CommandType, segment string, index int)
Click to show internal directories.
Click to hide internal directories.