orca/ext/wasm3/test/wasi/mal/README.md

22 lines
387 B
Markdown
Raw Permalink Normal View History

2023-04-12 14:21:03 +00:00
# mal (Make a Lisp)
[mal](https://github.com/kanaka/mal) is a Lisp interpreter.
### Running
```sh
# REPL:
../../../build/wasm3 mal.wasm
# Self-hosted REPL:
../../../build/wasm3 mal.wasm ./mal.mal
# Fibonacci test:
../../../build/wasm3 mal.wasm ./test-fib.mal 16
987
# Self-hosted Fibonacci test (takes ~10 seconds):
../../../build/wasm3 mal.wasm ./mal.mal ./test-fib.mal 10
55
```