aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/driver.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-08-30 23:54:55 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-08-30 23:54:55 +0530
commitc7a2fc0f8d85b5d3233ac1125df1b3d95db2b35a (patch)
tree041797ee9017fd86c3fcaa48eba082780562762c /src/cljcc/driver.clj
parent5de5a81e8a652d2a01e793ca4e39bc0fd5974f58 (diff)
Add compound statements
Adding compound statements Variable values changed based on scope
Diffstat (limited to 'src/cljcc/driver.clj')
-rw-r--r--src/cljcc/driver.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cljcc/driver.clj b/src/cljcc/driver.clj
index 4ad0051..b7b14c1 100644
--- a/src/cljcc/driver.clj
+++ b/src/cljcc/driver.clj
@@ -78,7 +78,7 @@
(let [preprocessed-file-path (make-file-name directory (remove-extension filename) "i")
file (io/file preprocessed-file-path)
source (slurp file)
- output (t/tacky-generate (p/parse (l/lex source)))]
+ output (t/tacky-generate (a/validate (p/parse (l/lex source))))]
(log/info (str
"Successfully generated Tacky IR.\n"
(with-out-str (pp/pprint output))))))