diff options
| author | Ian Moffett <ian@mirocom.org> | 2026-05-23 08:49:17 -0400 |
|---|---|---|
| committer | Ian Moffett <ian@mirocom.org> | 2026-05-23 08:49:17 -0400 |
| commit | 62451acdd4dd4cf369a801b0603e2e0841bfb627 (patch) | |
| tree | 853db2d031239dd9e7e27c8ed679f6e0f884bc8c /core/parser.c | |
| parent | 82e68e92a92e8973dcca8d94f175c9d16be94c80 (diff) | |
core: lexer: Add preprocessor tokens
Signed-off-by: Ian Moffett <ian@mirocom.org>
Diffstat (limited to 'core/parser.c')
| -rw-r--r-- | core/parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/parser.c b/core/parser.c index 5d64bb7..684a1ff 100644 --- a/core/parser.c +++ b/core/parser.c @@ -38,6 +38,9 @@ static const char *toktab[] = { [TT_RPAREN] = qtok(")"), [TT_COMMA] = qtok(","), [TT_ARROW] = qtok("->"), + [TT_DEFINE] = qtok("#define"), + [TT_IFNDEF] = qtok("#ifndef"), + [TT_IFDEF] = qtok("#ifdef"), [TT_RETURN] = qtok("return"), [TT_PUB] = qtok("pub"), [TT_PROC] = qtok("proc"), |
