ast,printer: add Includes field to File

Updates #12
This commit is contained in:
Michael McLoughlin
2018-12-31 00:08:48 -08:00
parent e364d6398e
commit 4aaf6bc7ed
2 changed files with 13 additions and 5 deletions

5
ast.go
View File

@@ -94,11 +94,14 @@ type Section interface {
// File represents an assembly file.
type File struct {
Includes []string
Sections []Section
}
func NewFile() *File {
return &File{}
return &File{
Includes: []string{"textflag.h"},
}
}
func (f *File) AddSection(s Section) {