aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/token.clj
diff options
context:
space:
mode:
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 883dda8..2da74fd 100644
--- a/src/cljcc/token.clj
+++ b/src/cljcc/token.clj
@@ -107,6 +107,8 @@
:logical-or 10
+ :question 5
+
:assignment 1
:assignment-plus 1
:assignment-multiply 1
@@ -128,6 +130,8 @@
(def chrs-kind-map
{\( :left-paren
\) :right-paren
+ \? :question
+ \: :colon
\{ :left-curly
\} :right-curly
\= :assignment
@@ -170,6 +174,8 @@
"return" :kw-return
"void" :kw-void
"int" :kw-int
+ "if" :kw-if
+ "else" :kw-else
:identifier))
(defn create