aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/parser.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/parser.clj
parentb50b3552de7e0e6bf71d78e59adec5e305d7618b (diff)
Add driver changes and float regex
Diffstat (limited to 'src/cljcc/parser.clj')
-rw-r--r--src/cljcc/parser.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cljcc/parser.clj b/src/cljcc/parser.clj
index 6ab3373..7837ce3 100644
--- a/src/cljcc/parser.clj
+++ b/src/cljcc/parser.clj
@@ -43,8 +43,8 @@
[kind [token & rst]]
(if (= kind (:kind token))
[token rst]
- (throw (ex-info "Parser Error." {:expected kind
- :actual (:kind token)}))))
+ (exc/parser-error "Actual and expected token differ." {:expected kind
+ :actual (:kind token)})))
(defn constant-exp-node [v]
{:type :exp
@@ -519,7 +519,7 @@
(defn- parse-program [tokens]
(let [[declarations tokens] (parse-repeatedly tokens parse-declaration :eof)
_ (expect :eof tokens)
- ;_ (m/coerce #'s/Program declarations)
+ ;_ (m/coerce #'s/Program declarations)
]
declarations))