aboutsummaryrefslogtreecommitdiff
path: root/pkg/lang/ast
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/ast')
-rw-r--r--pkg/lang/ast/stmt.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/lang/ast/stmt.go b/pkg/lang/ast/stmt.go
index 7545bee..5b17851 100644
--- a/pkg/lang/ast/stmt.go
+++ b/pkg/lang/ast/stmt.go
@@ -7,6 +7,7 @@ type StmtKind int
const (
StmtKindEmpty StmtKind = iota
StmtKindUse
+ StmtKindGlobal
StmtKindFnDecl
StmtKindTypeDecl
StmtKindVarDecl
@@ -31,10 +32,14 @@ type StmtT[T any] struct {
type StmtUse struct {
Globals []IdentNode
- Modules []IdentNode
+ Module IdentNode
Author IdentNode
}
+type StmtGlobal struct {
+ Name IdentNode
+}
+
type StmtFnDecl struct {
Name IdentNode
Args []IdentNode