diff options
| author | Ian Moffett <ian@mirocom.org> | 2026-05-23 09:01:18 -0400 |
|---|---|---|
| committer | Ian Moffett <ian@mirocom.org> | 2026-05-23 09:01:18 -0400 |
| commit | 5f726024711e0c803a50e3124820d7d4b214dd93 (patch) | |
| tree | 4bb7414cfd961511af9c33f467156465cb5d02cf /core/parser.c | |
| parent | 2ec8122a91fc09d6ce0dff502718b139a9d5689d (diff) | |
core: lexer: Add operational tokens
Signed-off-by: Ian Moffett <ian@mirocom.org>
Diffstat (limited to 'core/parser.c')
| -rw-r--r-- | core/parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/parser.c b/core/parser.c index 6720d84..58a1bc5 100644 --- a/core/parser.c +++ b/core/parser.c @@ -39,6 +39,11 @@ static const char *toktab[] = { [TT_COMMA] = qtok(","), [TT_COLON] = qtok(":"), [TT_ARROW] = qtok("->"), + [TT_PLUS] = qtok("+"), + [TT_MINUS] = qtok("-"), + [TT_SLASH] = qtok("/"), + [TT_STAR] = qtok("*"), + [TT_EQUALS] = qtok("="), [TT_DEFINE] = qtok("#define"), [TT_IFNDEF] = qtok("#ifndef"), [TT_IFDEF] = qtok("#ifdef"), |
