GerHobbelt / jison

bison / YACC / LEX in JavaScript (LALR(1), SLR(1), etc. lexer/parser generator)
https://gerhobbelt.github.io/jison/
MIT License
118 stars 20 forks source link

"Erroneous area: ..." display is empty on error #19

Closed GerHobbelt closed 6 years ago

GerHobbelt commented 6 years ago

... while I expect some minimal source code dump there.

Example of the failure to dump source as part of the error report(s):

node ../dist/cli-cjs-es5.js -o ./output/olmenu-proto2/ --main ./olmenu-proto2.jison

EBNF: ignoring unsupported parser option "%type  <str> filename "
while lexing in "INITIAL" state.

  Erroneous area:

EBNF: ignoring unsupported parser option "%type  <str> label"
while lexing in "INITIAL" state.

  Erroneous area:

EBNF: ignoring unsupported parser option "%type  <str> menu_command "
while lexing in "INITIAL" state.

  Erroneous area: