My answers for The Elements of Computing Systems
Common Lisp Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
old
test
.emacs.desktop
.gitignore
README.md
ast-builder.lisp
compilation-engine.lisp
grammar-for-mygrammar.txt
hack-assembler.lisp
jack-compiler.lisp
jack-def-test.txt
jack-def-test2.txt
jack-def-test3.txt
jack-def.txt
lang-description-specification.txt
language-definition-reader2.lisp
makecore.sh
packages.lisp
process-commandline.lisp
spec.lib
test.jack
tokenize-jack-reading whitespace2.lisp
treewalker2.lisp
vm-compiler.lisp

README.md

teocs

My answers for The Elements of Computing Systems

In Common Lisp.

I didn't do the last 1 or 2 chapters.

Also it's a bit messy, need to clean it up and add instruction how to run it all easily.

I did expand on the original questions, mainly the parser.

I made a more generic one that takes as input any grammar and parses the code, not just the grammar used in the book for the Jack language.

I called it: Exhaustive depth first recursive search EBNF programmable LL parser, producing AST in sexpr form.

It's the ast-builder.lisp