Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jison

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jison - npm Package Compare versions

Comparing version 0.2.12 to 0.2.13

8

lib/jison/cli-wrapper.js

@@ -45,2 +45,3 @@ #!/usr/bin/env node

lex;
raw = raw.replace(/\r\n/g, '\n');
if (args.lexfile) {

@@ -70,3 +71,8 @@ lex = IO.read(IO.join(IO.cwd(),args.lexfile));

function processGrammar (rawGrammar, lex, name) {
var grammar = require("./bnf").parse(rawGrammar);
var grammar;
try {
grammar = require("./bnf").parse(rawGrammar);
} catch (e) {
grammar = JSON.parse(rawGrammar);
}
var opt = grammar.options || {};

@@ -73,0 +79,0 @@ if (lex) grammar.lex = require("./jisonlex").parse(lex);

6

lib/jison/json2jison.js

@@ -67,8 +67,8 @@ #!/usr/bin/env node

if (typeof handle[i][1] === 'string') {
if (handle[i][2] && handle[i][2].prec) {
s += " %prec "+handle[i][2].prec;
}
if (!options.stripActions) {
s += "\n {"+handle[i][1]+"}";
}
if (handle[i][2] && handle[i][2].prec) {
s += " %prec "+handle[i][2].prec;
}
} else if (handle[i][1].prec) {

@@ -75,0 +75,0 @@ s += " %prec "+handle[i][1].prec;

@@ -5,3 +5,3 @@ {

"description": "A parser generator with Bison's API",
"version": "0.2.12",
"version": "0.2.13",
"keywords": [

@@ -8,0 +8,0 @@ "jison",

@@ -65,2 +65,3 @@ Jison

// `grammar` can also be a string that uses jison's grammar format
var parser = new Parser(grammar);

@@ -67,0 +68,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc