zaach/jison — Issue #71: jison cannot parse examples/calculator.json
Author: jiaweihli
Created: 2011-11-06 19:49:03+00:00
State: open

Using node 0.4.9, jison 0.2.11, npm 0.2.19, on Ubuntu 11.10:

jison examples/calculator.json

throws this error:

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Parse error on line 1:
{ "comment": "JSO
^
Expecting '%%', 'START', 'LEX_BLOCK', 'ACTION', 'LEFT', 'RIGHT', 'NONASSOC'
at Object.parseError (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/util/bnf-parser.js:96:11)
at Object.parse (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/util/bnf-parser.js:172:22)
at Object.parse (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/bnf.js:4:54)
at processGrammar (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/cli-wrapper.js:69:36)
at Object.main (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/cli-wrapper.js:48:46)
at Object. (/home/administrator/.node_libraries/.npm/jison/0.2.11/package/lib/jison/cli-wrapper.js:81:13)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)