plum-umd / the-838e-compiler

Compiler for CMSC 838E
2 stars 0 forks source link

Small edits lambda #68

Open dandorat opened 3 years ago

dandorat commented 3 years ago

Added registers used in compile-λ-definition, reposition-env-vars, compile-λ, copy-env-to-heap, copy-closure-env-to-stack, compile-tail-applyL, compile-nontail-applyL, compile-letrec-λs, compile-letrec-init to the notes at the top of compile.rkt. Removed compile-app, compile-tail-app, and compile-nontail-app as all functions are compiled via the higher-order route now. Removed commented out code that is not needed with higher-order functions from compile.rkt and interp.rkt. Added support for printing "#" for procedure values in the C files and in unload-value. Removed proc-mask, replaced its use with ptr-mask. Added procedure?.

dandorat commented 3 years ago

Added string=?, string-trim, build-string, map, foldl, foldr, findf, and remove-duplicates to the libraries.