You can install Lua with:
wapm install lua
You can run lua cli
$ wapm run lua
Lua 5.4.0 Copyright (C) 1994-2018 Lua.org, PUC-Rio
>
You can also run specific files
$ wapm run lua examples/helloworld.lua
Hello World
You will need Emscripten SDK (emsdk) to build the lua.wasm
file.
Steps:
- Setup emsdk (>= 1.38.11), see Installation Instructions
- Run
bash build.sh