0.9.2 • Published 2 years ago

cashc-web v0.9.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

cashc-web

This is a workaround that allows cashc to work in Web environemnts.

The underlying parser library used by CashScript (antlr4ts) has circular dependencies and will not bundle correctly with some tools (e.g. rollup).

This causes runtime errors: https://github.com/tunnelvisionlabs/antlr4ts/issues/466

Webpack does not appear to have this issue, so it is used here to bundle cashc AND antlr4ts into a single package (with polyfills).

Example

import { compileString } from 'cashc-web';

compileString('YOUR_CASHSCRIPT_CODE');
0.9.2

2 years ago