Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not work for JSON format #276

Open
xndcn opened this issue Apr 2, 2015 · 1 comment
Open

Not work for JSON format #276

xndcn opened this issue Apr 2, 2015 · 1 comment

Comments

@xndcn
Copy link
Contributor

xndcn commented Apr 2, 2015

When input file is raw JSON format, it produces error:

/usr/local/lib/node_modules/jison/lib/cli.js:142
var settings = grammar.options || {};
^
TypeError: Cannot read property 'options' of undefined
at Object.generateParserString (/usr/local/lib/node_modules/jison/lib/cli.js:142:27)
at processGrammar (/usr/local/lib/node_modules/jison/lib/cli.js:74:22)
at processInputFile (/usr/local/lib/node_modules/jison/lib/cli.js:106:22)
at Object.cliMain as main
at Object. (/usr/local/lib/node_modules/jison/lib/cli.js:185:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

xndcn added a commit to xndcn/jison that referenced this issue Apr 2, 2015
@lambdabaa
Copy link

I think this was a regression introduced after 0.4.13

zaach added a commit that referenced this issue Aug 18, 2015
Fix issue #276, error when input file is JSON format.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants