Microcontroller Port of CBQN
|
|
||
|---|---|---|
| src | ||
| .gitignore | ||
| cc.bqn | ||
| genRuntime | ||
| genRuntimeSrc | ||
| LICENSE | ||
| makefile | ||
| precompiled.bqn | ||
| README.md | ||
| test.bqn | ||
Build & run (tl;dr: make; rlwrap ./BQN):
- (optional) Run
./genRuntime path/to/mlochbaum/BQN; Otherwise, the necessary precompiled bytecode will be retrieved fromremotes/origin/bytecode - If wanted, customize settings in
src/h.h make- Options:
make o3(the default),make debug(more presets exist for more specific debugging) make CC=gcccan be used to compile with gcc. Otherwise,clangis used.- Do
make cleanormake t=[o3|debug|…] cleanbeforehand to force recompile make single-(o3|o3g|debug|c)compile everything as a single translation unit and thus will compile slower, but allows specifying extra compiler arguments withmake f='…' single-…and allows the compiler to optimize more
- Options:
./BQN(orrlwrap ./BQNfor a better REPL; see./BQN --helpfor more options)
Run tests with ./BQN mlochbaum/BQN/test/this.bqn (add -noerr for a heapverify build).
Time REPL-executed safe prim tests: ./test.bqn mlochbaum/BQN -s prim > SP; time ./BQN<SP>/dev/null
Test precompiled expression: ./precompiled.bqn mlochbaum/BQN "$PATH" '2+2'
Any file without an explicit copyright message is copyright (c) 2021 dzaima, GNU GPLv3 - see LICENSE