aboutsummaryrefslogtreecommitdiff
path: root/src/tokens.h
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-04 01:33:13 -0500
committerMustafa Quraish <[email protected]>2022-02-04 01:33:13 -0500
commit32ece230b18741218531f0ba353b0665dac82e04 (patch)
tree2d35c7574b882185e4f65d5352d20a1ae0d5dbb1 /src/tokens.h
parentSome minor bug fixes (diff)
downloadcup-32ece230b18741218531f0ba353b0665dac82e04.tar.xz
cup-32ece230b18741218531f0ba353b0665dac82e04.zip
Add an enum-like-but-not-really structure
Basically, it looks like an enum but it isn't actually a type. It just behaves like a container to number all the (global) constants defined within it.
Diffstat (limited to 'src/tokens.h')
-rw-r--r--src/tokens.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tokens.h b/src/tokens.h
index 05f2162..7045a5c 100644
--- a/src/tokens.h
+++ b/src/tokens.h
@@ -49,6 +49,7 @@
#define ENUM_KEYWORDS(F) \
F(TOKEN_CHAR, "char") \
F(TOKEN_CONST, "const") \
+ F(TOKEN_ENUM, "enum") \
F(TOKEN_ELSE, "else") \
F(TOKEN_DEFER, "defer") \
F(TOKEN_FN, "fn") \