diff options
| author | 2024-04-09 07:56:36 +0200 | |
|---|---|---|
| committer | 2024-04-09 10:06:59 +0200 | |
| commit | 9b45d155c3a71eaf798fde2b516dfd1a0f66257e (patch) | |
| tree | 76153133f2f0c442f82d046677c96abd1d1432f5 /lex.h | |
| parent | 274935a984141f623a364737766e0eae26954c82 (diff) | |
frontend: basic #include
Diffstat (limited to 'lex.h')
| -rw-r--r-- | lex.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: */ |