wasm-lang

0.9.14 • Public • Published

Build npm version GitHub license

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.

Readme

Keywords

none

Package Sidebar

Install

npm i wasm-lang

Weekly Downloads

1

Version

0.9.14

License

MIT

Unpacked Size

18.6 kB

Total Files

15

Last publish

Collaborators

  • michaljach