Created structs needed to represent a data section
This commit is contained in:
parent
0a067524ce
commit
b02ff6cda6
@ -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
|
||||||
|
|||||||
132
parser/tree.go
132
parser/tree.go
@ -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.)
|
||||||