0.11.0 • Published 6 months ago

@pomsky-lang/compiler-node v0.11.0

Weekly downloads
-
License
MIT OR Apache-2.0
Repository
github
Last release
6 months ago

Pomsky WASM module for node

WASM module of Pomsky.

Usage

import { compile } from '@pomsky-lang/compiler-node'

const { output, diagnostics } = compile(`^ C* '.' C* $`, 'js')

This should just work in Node.js. To use Pomsky in the browser, use unplugin if you're using a bundler, or compiler-web if you want to compile Pomsky expressions on the client.

Don't forget to check if output === null, which means that compilation failed, and you have to look at the diagnostics. Even when the expression compiled successfully, diagnostics may contain useful warnings.

License

Dual-licensed under the MIT license or the Apache 2.0 license.

0.11.0

6 months ago

0.10.0

1 year ago