about summary refs log tree commit diff
path: root/pkg/lang/ast/nodes.go
blob: 117d8bfa1476ab9abc34767d6f17d7164a049960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package ast

import "jinx/pkg/libs/source"

type IdentNode struct {
	At    source.Loc
	Value string
}

type BlockNode struct {
	At    source.Loc
	Stmts []Stmt
}

type CondNode struct {
	At   source.Loc
	Cond Expr
	Then BlockNode
}