~pixelherodev/zyg

ref: 27187f8391f97f3e6f69df47ee5ad9337d9975a0 zyg/lexer.h -rw-r--r-- 210 bytes
27187f83Noam Preil fixes 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
struct zygtokens{
	// stb.h array
	uint8_t *tags;
	// stb.h array; indices into the tree's strings array.
	uint32_t *strings;
};

struct zyglexed{
	struct zygtokens tokens;
	c3ctx tree;
}

zyg_lex(char *path);