first pass at a "builder" interface

This commit is contained in:
Michael McLoughlin
2018-11-30 20:43:31 -08:00
parent b65b6c02b8
commit 9b9f5b7e0c
11 changed files with 10069 additions and 84 deletions

6
ast.go
View File

@@ -25,7 +25,11 @@ type Instruction struct {
// File represents an assembly file.
type File struct {
functions []*Function
Functions []*Function
}
func NewFile() *File {
return &File{}
}
// Function represents an assembly function.