diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-05 14:25:38 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-06 21:57:26 +0200 |
commit | 88099fdaf55a24854508b7a75d690fa76be6f44a (patch) | |
tree | d333186871ec1719bc03319f358583b655da46f2 /lexer.h | |
parent | b0153864c0cef2f4ba6202a0242f93d607ccbae9 (diff) |
treewide: refactor internal AST structures
- unify operand and value tag structures
- use a contiguous array for storing opcodes
- use relative offsets for next and children ops
- defer function creation to runtime
- rework "this" context handling by storing context pointer in scope tags
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lexer.h')
-rw-r--r-- | lexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ extern const char *tokennames[__T_MAX]; bool utf8enc(char **out, int *rem, int code); -struct ut_opcode * +uint32_t ut_get_token(struct ut_state *s, const char *input, int *mlen); #endif /* __LEXER_H_ */ |