Documentation
¶
Index ¶
- Constants
- Variables
- type VMWriter
- func (vmw *VMWriter) WriteArithmetic(command string) error
- func (vmw *VMWriter) WriteCall(name string, nArgs int) error
- func (vmw *VMWriter) WriteFunction(name string, nVars int) error
- func (vmw *VMWriter) WriteGoto(label string) error
- func (vmw *VMWriter) WriteIf(label string) error
- func (vmw *VMWriter) WriteLabel(label string) error
- func (vmw *VMWriter) WritePop(segment string, index int) error
- func (vmw *VMWriter) WritePush(segment string, index int) error
- func (vmw *VMWriter) WriteReturn() error
Constants ¶
Variables ¶
Functions ¶
This section is empty.
Types ¶
type VMWriter ¶
type VMWriter struct {
// contains filtered or unexported fields
}
func (*VMWriter) WriteArithmetic ¶
func (*VMWriter) WriteLabel ¶
func (*VMWriter) WriteReturn ¶
Click to show internal directories.
Click to hide internal directories.