core: lexer: Add preprocessor tokens

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-05-23 08:49:17 -04:00
parent 82e68e92a9
commit 62451acdd4
3 changed files with 58 additions and 0 deletions
+3
View File
@@ -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"),