@rapid-lang/compiler
v0.3.4
Published
Compiles `RAPID` sources to [WebAssembly](https://webassembly.org/) `wasm` binary module file. It can dynamically create and output sourcemaps for debugging.
Downloads
6
Readme
RAPID compiler
Compiles RAPID
sources to WebAssembly wasm
binary module file. It can dynamically create and output sourcemaps for debugging.
Install
npm i @rapid-lang/compiler -g
API
Commands:
rapid-compiler source Path to source file to be compiled
Options:
-o, --output Path to result file to be saved [string] [required]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
-s, --sourceMaps Generate sourceMaps for debugging [boolean]
-t, --textFormat Generate WebAssembly Text Format (wat) file [string]
-p, --port Sourcemaps default port [number]
Example:
rapid-compiler dummy/test.rapid -o dummy/test.wasm -s
Language Documentation
Full documentation is available on https://rapid-lang.org page.
Development
Run yarn debug
with parameters to watch, compile and debug files, for example:
yarn debug dummy/test.rapid -o dummy/test.wasm -s
Follow Github Flow and Conventional Commits via yarn commit
command. Do linting with yarn lint
and build project with yarn build
.
Changelog
See CHANGELOG
file for list of recent changes.
License
See LICENSE
file for more information.