~pixelherodev/zyg

ref: 7dccbd7d9dc502f2cd859c4c7ebd84a0d8f3acd7 zyg/lexer.h -rw-r--r-- 210 bytes
7dccbd7dNoam Preil merge 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);