🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

jison2json

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jison2json

Converts jison grammar definitions to JSON

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

jison2json

jison grammars come in two formats: JSON or a speciel 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 jison2json -g

usage

# single grammar
jison2json grammar.y

# or separate grammars
jison2json grammar.y lex.l

Or require it and convert programatically:

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

var json = jison2json.convert(grammar);

license

MIT

Keywords

jison

FAQs

Package last updated on 06 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts