wasm-lang
v0.9.14
Published
Compiles `[langname]` sources to [WebAssembly](https://webassembly.org/) `wasm` binary module file. It can dynamically create and output sourcemaps for debugging.
Downloads
12
Readme
wasm-lang [needs name] compiler
Compiles [langname]
sources to WebAssembly wasm
binary module file. It can dynamically create and output sourcemaps for debugging.
Install
npm i wasm-lang -g
API
Options:
--help Show help [boolean]
--version Show version number [boolean]
-f, --file Path to source file to be compiled [string] [required]
-o, --output Path to result file to be saved [string] [required]
-s, --sourceMaps Generate sourceMaps for debugging [boolean]
-t, --textFormat Generate WebAssembly Text Format (wat) file [string]
Example:
wasm-lang -f dummy/test.x -o dummy/test.wasm -s
Language Documentation
Full documentation is available on https://michaljach.gitbook.io/wasm/ page.
Development
Use start script to start the server, watch changes and auto re-compile sources.
yarn start
Example:
yarn start -f dummy/test.x -o dummy/test.wasm
Changelog
See CHANGELOG
file for list of recent changes.
License
See LICENSE
file for more information.