about summary refs log tree commit diff
path: root/pkg/lang/ast/nodes.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/ast/nodes.go')
-rw-r--r--pkg/lang/ast/nodes.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/lang/ast/nodes.go b/pkg/lang/ast/nodes.go
new file mode 100644
index 0000000..699d025
--- /dev/null
+++ b/pkg/lang/ast/nodes.go
@@ -0,0 +1,18 @@
+package ast
+
+import "jinx/pkg/lang/scanner/token"
+
+type IdentNode struct {
+	At    token.Loc
+	Value string
+}
+
+type BlockNode struct {
+	At    token.Loc
+	Stmts []Stmt[any]
+}
+
+type CondNode struct {
+	Cond Expr[any]
+	Then BlockNode
+}