aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/token.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-12-16 20:11:01 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-12-16 20:11:01 +0530
commitab47567cde2c0307042118684305c9ad5871f787 (patch)
treea903307e5bd963a91c143a84da0d0aea6b7198db /src/cljcc/token.clj
parent90b8a837789eb99c44bcea9abee53012f2df71a4 (diff)
Add parsing for unsigned / signed int, long
Diffstat (limited to 'src/cljcc/token.clj')
-rw-r--r--src/cljcc/token.clj6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cljcc/token.clj b/src/cljcc/token.clj
index 6796c0b..3d08010 100644
--- a/src/cljcc/token.clj
+++ b/src/cljcc/token.clj
@@ -207,6 +207,12 @@
"unsigned" :kw-unsigned
:identifier))
+(def type-specifier-keywords
+ #{:kw-int :kw-long :kw-signed :kw-unsigned})
+
+(def storage-specifier-keywords
+ #{:kw-static :kw-extern})
+
(defn create
([kind line col]
{:kind kind