From c7a2fc0f8d85b5d3233ac1125df1b3d95db2b35a Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Fri, 30 Aug 2024 23:54:55 +0530 Subject: Add compound statements Adding compound statements Variable values changed based on scope --- src/cljcc/driver.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cljcc/driver.clj') 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)))))) -- cgit v1.2.3