Created structs needed to represent a data section

This commit is contained in:
Sasha Koshka 2022-08-15 01:47:42 -04:00
parent 0a067524ce
commit b02ff6cda6
3 changed files with 152 additions and 9 deletions

View File

@ -10,8 +10,9 @@ func (parser *ParsingOperation) parseBody () (err error) {
switch parser.token.Value().(string) { switch parser.token.Value().(string) {
case "data": case "data":
case "type": case "type":
case "func":
case "face": case "face":
case "enum":
case "func":
} }
return return

View File

@ -1,5 +1,8 @@
package parser package parser
import "git.tebibyte.media/sashakoshka/arf/file"
import "git.tebibyte.media/sashakoshka/arf/types"
// SyntaxTree represents an abstract syntax tree. It covers an entire module. It // 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 // can be expected to be syntactically correct, but it might not be semantically
// correct (because it has not been analyzed yet.) // correct (because it has not been analyzed yet.)