summaryrefslogtreecommitdiff
path: root/tnslc/parse/ast.tnsl
blob: 554aac29bb1521e61787a103d3b24eb2eec98e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

uint16 NTYPE_MOD = 0
uint16 NTYPE_STRUCT = 1
uint16 NTYPE_ID = 2
uint16 NTYPE_BINOP = 3
uint16 NTYPE_PREOP = 4
uint16 NTYPE_POSTOP = 5
uint16 NTYPE_FUNCTION = 6


struct Node {
	uint16 _type,
	~uint8 data,
	utils.Vector sub
}

/; generate_ast (~utils.File fin) [Node]
	Node out
	return out
;/