aboutsummaryrefslogtreecommitdiff
path: root/cljcc-compiler/src/cljcc/analyze/core.clj
diff options
context:
space:
mode:
authorYour Name <agrawalshagun07@gmail.com>2025-03-16 18:03:26 +0530
committerYour Name <agrawalshagun07@gmail.com>2025-03-16 18:03:26 +0530
commit32499638cef3c49ff686b19b5708d6b08712c526 (patch)
tree31f09287602d243b22660fe455e5174bdcc280b4 /cljcc-compiler/src/cljcc/analyze/core.clj
parent277319fa392f5ee9f21eedf2c4d224739f045690 (diff)
Refactor into cli and cljcc-compiler folders
Pass all tests. Fix babashka tasks and build setup. Repl is behaving in unexpected ways, otherwise working as expected.
Diffstat (limited to 'cljcc-compiler/src/cljcc/analyze/core.clj')
-rw-r--r--cljcc-compiler/src/cljcc/analyze/core.clj10
1 files changed, 10 insertions, 0 deletions
diff --git a/cljcc-compiler/src/cljcc/analyze/core.clj b/cljcc-compiler/src/cljcc/analyze/core.clj
new file mode 100644
index 0000000..793b667
--- /dev/null
+++ b/cljcc-compiler/src/cljcc/analyze/core.clj
@@ -0,0 +1,10 @@
+(ns cljcc.analyze.core
+ (:require [cljcc.analyze.resolve :as r]
+ [cljcc.analyze.label-loops :as l]
+ [cljcc.analyze.typecheck :as t]))
+
+(defn validate [program]
+ (-> program
+ r/resolve-program
+ l/label-loops
+ t/typecheck))