finish project eight backend compiler

- modify existing implementation to use variant types for a more
  accurate representation of the vm byte code
- switch to fold from recursion for the main translate function
- use separate modules for translating different vm commands
- move static arithmetic command translations to a map
This commit is contained in:
2024-09-13 16:37:20 -04:00
parent 5973c64e78
commit b7dee58454
35 changed files with 633 additions and 302 deletions

1
compiler/backend/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
_build