From 99adb48d94c59cb2e5701ca39d7c40d4f63459b3 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 18 Oct 2025 18:12:19 +0200 Subject: #pragma once --- lex.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lex.h') diff --git a/lex.h b/lex.h index 6adbad9..20fb2ee 100644 --- a/lex.h +++ b/lex.h @@ -98,11 +98,17 @@ struct lexer { struct arena **tmparena; }; +enum initlexer { + LXOK, + LXFILESEEN, + LXERR, +}; + const char *intern(const char *); int lex(struct lexer *, struct token *); int lexpeek(struct lexer *, struct token *); enum typetag parsenumlit(uvlong *, double *, const struct token *, bool ispp); -const char *initlexer(struct lexer *, const struct span *span, const char *file); +enum initlexer initlexer(struct lexer *, const char **err, const char *file); void lexerdump(struct lexer *, struct wbuf *out); void lexerfreetemps(struct lexer *); -- cgit v1.2.3