aboutsummaryrefslogtreecommitdiff
path: root/pkg/lang/ast
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/lang/ast')
-rw-r--r--pkg/lang/ast/stmt.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkg/lang/ast/stmt.go b/pkg/lang/ast/stmt.go
index 6395f57..65b2532 100644
--- a/pkg/lang/ast/stmt.go
+++ b/pkg/lang/ast/stmt.go
@@ -11,6 +11,8 @@ const (
StmtKindObjectDecl
StmtKindVarDecl
StmtKindIf
+ StmtKindForCond
+ StmtKindForIn
StmtKindTry
StmtKindReturn
StmtKindContinue
@@ -47,7 +49,18 @@ type StmtVarDecl struct {
}
type StmtIf struct {
- Conds []CondNode
+ Conds []CondNode
+}
+
+type StmtForCond struct {
+ Cond Expr
+ Do BlockNode
+}
+
+type StmtForIn struct {
+ Name IdentNode
+ Collection Expr
+ Do BlockNode
}
type StmtTry struct {