Syntax tree now stores map of require names -> full paths

This commit is contained in:
2022-09-07 17:12:46 -04:00
parent 596deaf0c3
commit 7e972e2132
6 changed files with 47 additions and 8 deletions
+1 -3
View File
@@ -4,8 +4,6 @@ import "git.tebibyte.media/arf/arf/file"
import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/arf/arf/infoerr"
// TODO: implement table of import names -> full paths from /. perhaps replace
// requires[] with this, and build it when parsing the meta section.
// SyntaxTree represents an abstract syntax tree. It covers an entire module. It
// can be expected to be syntactically correct, but it might not be semantically
// correct (because it has not been analyzed yet.)
@@ -13,7 +11,7 @@ type SyntaxTree struct {
license string
author string
requires []string
requires map[string] string
sections map[string] Section
}