diff options
author | Bad Diode <bd@badd10de.dev> | 2022-03-30 16:06:01 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-03-30 16:06:01 +0200 |
commit | 5fc604279a9fb156dd3a8ade7bdf5c0936e9f9a7 (patch) | |
tree | f08d452ccfb51c7043a90a769f959cb970870d23 /src/lexer.h | |
parent | 138b466b897f94ea6a29a7b62c39caa717efafec (diff) | |
download | bdl-5fc604279a9fb156dd3a8ade7bdf5c0936e9f9a7.tar.gz bdl-5fc604279a9fb156dd3a8ade7bdf5c0936e9f9a7.zip |
Add parsing for builtin arithmetic ops
Diffstat (limited to 'src/lexer.h')
-rw-r--r-- | src/lexer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lexer.h b/src/lexer.h index d864a1d..a214096 100644 --- a/src/lexer.h +++ b/src/lexer.h | |||
@@ -30,6 +30,13 @@ typedef enum TokenType { | |||
30 | TOKEN_FUN, | 30 | TOKEN_FUN, |
31 | TOKEN_STRUCT, | 31 | TOKEN_STRUCT, |
32 | 32 | ||
33 | // Arithmetic ops. | ||
34 | TOKEN_ADD, | ||
35 | TOKEN_SUB, | ||
36 | TOKEN_MUL, | ||
37 | TOKEN_DIV, | ||
38 | TOKEN_MOD, | ||
39 | |||
33 | // Special operators. | 40 | // Special operators. |
34 | TOKEN_COLON, | 41 | TOKEN_COLON, |
35 | TOKEN_DOT, | 42 | TOKEN_DOT, |