0.6.1-215 • Published 6 years ago

@gerhobbelt/jison2json v0.6.1-215

Weekly downloads
16
License
MIT
Repository
github
Last release
6 years ago

jison2json

build status

jison grammars come in two formats: JSON or a special text format similar to Bison's. This utility converts from the jison's format to JSON. See the json2jison for the reverse conversion.

install

npm install @gerhobbelt/jison2json -g

build

Follow the install & build directions of the monorepo.

You can also only build this particular subpackage by cd-ing into this directory and then invoking the local make:

cd packages/jison2json
make

This will generate the rollup/babel-postprocessed ES6 and ES5 compatible libraries in the local dist/ directory.

usage

# single grammar
jison2json grammar.y

# or separate grammars
jison2json grammar.y lex.l

Or require it and convert programatically:

var jison2json = require('@gerhobbelt/jison2json');
var grammar = "%% foo: bar { return true; };";

var json = jison2json.convert(grammar);

license

MIT

0.6.1-215

6 years ago

0.6.1-214

6 years ago

0.6.1-212

6 years ago

0.6.1-208

7 years ago

0.6.1-207

7 years ago

0.6.1-206

7 years ago

0.6.1-205

7 years ago

0.6.1-203

7 years ago

0.6.1-202

7 years ago

0.0.2-193

7 years ago

0.0.2-192

7 years ago

0.0.2-191

7 years ago

0.0.2-190

7 years ago

0.0.2-188

7 years ago

0.0.2-186

7 years ago