@rapid-lang/compiler
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

Build npm version GitHub license

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @rapid-lang/compiler

Weekly Downloads

9

Version

0.3.4

License

MIT

Unpacked Size

19 kB

Total Files

22

Last publish

Collaborators

  • michaljach