aboutsummaryrefslogtreecommitdiffhomepage
path: root/lex.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2024-04-09 07:56:36 +0200
committerlemon <lsof@mailbox.org>2024-04-09 10:06:59 +0200
commit9b45d155c3a71eaf798fde2b516dfd1a0f66257e (patch)
tree76153133f2f0c442f82d046677c96abd1d1432f5 /lex.h
parent274935a984141f623a364737766e0eae26954c82 (diff)
frontend: basic #include
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h4
1 files changed, 3 insertions, 1 deletions
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, /* <hdr> (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: */