@cornjs/parser
v0.11.1
Published
Native Typescript Corn parser
Maintainers
Readme
Corn.JS
Native Typescript implementation of the Corn parser.
This is compliant with the (currently unfinished) v0.11 spec.
Installation
Add the @cornjs/parser package.
Usage
import { parse } from '@cornjs/parser';
const corn = "{ let $foo = 42 } in { value = $foo }";
const res = parse(corn);
if(res.ok) console.log(res.value); // { value: 42 }