Copyright (C) 2018-2019 Nolan Eakins
A language that looks like Lisp but lacks lists and compiles in a single pass. All it knows are integers and memory accesses.
https://github.com/sneakin/nolisp/tree/nolisp2
- Steel Bank Common Lisp
- Ruby and Rake
In a Lisp such as SBCL the following can be done:
$ cd $ROOT
$ sbcl
cl> (load "sbcl.lisp")Or in Emacs using Slime, evaluate sbcl.lisp with the slime-eval-buffer command.
cl> (repl::repl-file path) cl> (repl::disassemble-asm output-sequence)Compiling and disassembling can also be done outside of a Lisp:
To produce compiler.exe and disassembler.exe run:
$ cd $ROOT
$ rake $ ./compiler.exe -o hello-world.bin tests/runtime/hello-world.nlAnd to run hello-world.bin:
$ NODE_PATH=$BACAW/js/lib node $BACAW/bin/bccon.js hello-world.binBacaw can be fetched using git submodule update --init.