return a basic instruction object

This commit is contained in:
Michael McLoughlin
2018-11-27 22:38:53 -08:00
parent 23289963d9
commit b65b6c02b8
4 changed files with 993 additions and 991 deletions

6
ast.go
View File

@@ -19,14 +19,10 @@ type Operand interface {
// Instruction is a single instruction in a function.
type Instruction struct {
Mnemonic string
Opcode string
Operands []Operand
}
type Node interface {
Asm
}
// File represents an assembly file.
type File struct {
functions []*Function