about summary refs log tree commit diff
path: root/pkg/lang/ast/nodes.go
blob: 55dbb5b9c59330536beb440714144eaf65b45dae (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/lang/scanner/token"

type IdentNode struct {
	At    token.Loc
	Value string
}

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

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