orca/ext/wasm3/test/wasi/mal
Martin Fouilleul 17c0f02962 orca runtime initial commit 2023-04-12 16:21:03 +02:00
..
.gitattributes orca runtime initial commit 2023-04-12 16:21:03 +02:00
README.md orca runtime initial commit 2023-04-12 16:21:03 +02:00
core.mal orca runtime initial commit 2023-04-12 16:21:03 +02:00
env.mal orca runtime initial commit 2023-04-12 16:21:03 +02:00
mal.mal orca runtime initial commit 2023-04-12 16:21:03 +02:00
test-fib.mal orca runtime initial commit 2023-04-12 16:21:03 +02:00

README.md

mal (Make a Lisp)

mal is a Lisp interpreter.

Running

# 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