Skip to content

BernardBot/LamToWat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LamToWat

Compile lambda expressions to Web Assembly Text Format.

Running an example compilation

cabal install
cabal exec lam2wat ./test/lam/arith.lam out.wat
wat2wasm out.wat
wasm-interp out.wasm --run-all-exports

This should print:

_start() => i32:9

You can check the example arith.lam file and see that it multiplies three times three, which indeed is nine.

Running tests

You can run tests with cabal test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published