forked from Mirrors/wasm3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
387 B
Markdown
22 lines
387 B
Markdown
3 years ago
|
# 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
|
||
|
```
|