From a94b482b001d99ecffdb31067319773cbde4501e Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Wed, 30 Oct 2024 00:34:36 +0530 Subject: Add emission for functions Able to execute "hello, world" program. Some segmentation faults in specific test steps. Executables not exiting on their own. --- src/cljcc/symbols.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/cljcc/symbols.clj (limited to 'src/cljcc/symbols.clj') 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)) -- cgit v1.2.3