aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/token.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-12-24 00:05:11 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-12-24 00:05:11 +0530
commit382c19861608e9ab9903c78f1e5c02bc061cc7c8 (patch)
treecbf2d16132a71b21e0f0e81f6b724685dcb242aa /src/cljcc/token.clj
parentb50b3552de7e0e6bf71d78e59adec5e305d7618b (diff)
Add driver changes and float regex
Diffstat (limited to 'src/cljcc/token.clj')
-rw-r--r--src/cljcc/token.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cljcc/token.clj b/src/cljcc/token.clj
index 3d08010..213588c 100644
--- a/src/cljcc/token.clj
+++ b/src/cljcc/token.clj
@@ -53,6 +53,7 @@
:kw-return
:kw-int
:kw-long
+ :kw-double
:kw-void
:kw-signed
:kw-unsigned})
@@ -194,6 +195,7 @@
"void" :kw-void
"int" :kw-int
"long" :kw-long
+ "double" :kw-double
"if" :kw-if
"else" :kw-else
"do" :kw-do
@@ -208,7 +210,7 @@
:identifier))
(def type-specifier-keywords
- #{:kw-int :kw-long :kw-signed :kw-unsigned})
+ #{:kw-int :kw-long :kw-double :kw-signed :kw-unsigned})
(def storage-specifier-keywords
#{:kw-static :kw-extern})