diff options
| author | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-10-30 00:34:36 +0530 |
|---|---|---|
| committer | Shagun Agrawal <agrawalshagun07@gmail.com> | 2024-10-30 00:34:36 +0530 |
| commit | a94b482b001d99ecffdb31067319773cbde4501e (patch) | |
| tree | 65e53f128b7e63f1e8392e447d113d9dc827e7b4 /src/cljcc/symbols.clj | |
| parent | 40da421300b14e4766718984e0787550aadb9319 (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.clj | 10 |
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)) |
