Created base for parser

The parser now handles file opening and invokes the lexer.
This commit is contained in:
2022-08-12 10:11:43 -05:00
parent 5a55c9ac87
commit 09170e390d
3 changed files with 59 additions and 16 deletions

8
parser/tree.go Normal file
View File

@@ -0,0 +1,8 @@
package parser
// 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.)
type SyntaxTree struct {
}