From 9b45d155c3a71eaf798fde2b516dfd1a0f66257e Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 9 Apr 2024 07:56:36 +0200 Subject: frontend: basic #include --- lex.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lex.h') diff --git a/lex.h b/lex.h index 0c6d151..ae8eeec 100644 --- a/lex.h +++ b/lex.h @@ -15,6 +15,8 @@ enum toktag { /* single-character tokens' tag value is the character itself */ TKNUMLIT, TKCHRLIT, TKSTRLIT, + TKPPHDRH, /* (for #include) */ + TKPPHDRQ, /* "hdr" (for #include) */ TKEQU = '@', /* == */ TKNEQ, /* != */ TKLTE, /* <= */ @@ -104,6 +106,6 @@ 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); -void initlexer(struct lexer *, const char *file, struct arena **); +void initlexer(struct lexer *, const struct span *span, const char *file, struct arena **tmparena); /* vim:set ts=3 sw=3 expandtab: */ -- cgit v1.2.3