summaryrefslogtreecommitdiffhomepage
path: root/lexer.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-05 14:25:38 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-06 21:57:26 +0200
commit88099fdaf55a24854508b7a75d690fa76be6f44a (patch)
treed333186871ec1719bc03319f358583b655da46f2 /lexer.h
parentb0153864c0cef2f4ba6202a0242f93d607ccbae9 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.h b/lexer.h
index 7a5726b..4d46ad0 100644
--- a/lexer.h
+++ b/lexer.h
@@ -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_ */