aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/symbols.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-10-30 00:34:36 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-10-30 00:34:36 +0530
commita94b482b001d99ecffdb31067319773cbde4501e (patch)
tree65e53f128b7e63f1e8392e447d113d9dc827e7b4 /src/cljcc/symbols.clj
parent40da421300b14e4766718984e0787550aadb9319 (diff)
Add emission for functions
Able to execute "hello, world" program. Some segmentation faults in specific test steps. Executables not exiting on their own.
Diffstat (limited to 'src/cljcc/symbols.clj')
-rw-r--r--src/cljcc/symbols.clj10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cljcc/symbols.clj b/src/cljcc/symbols.clj
new file mode 100644
index 0000000..1afbe47
--- /dev/null
+++ b/src/cljcc/symbols.clj
@@ -0,0 +1,10 @@
+(ns cljcc.symbols)
+
+(def symbols
+ "Holds global symbol table.
+
+ Maps identifiers to their types."
+ (atom {}))
+
+(defn reset-symbols [new-symbols]
+ (reset! symbols new-symbols))