You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated parser in debug mode with jison -t <grammar> <lex>. Got ReferenceError: Jison is not defined when running parse() on the generated parser. Traced error back to code:
in the generated output, which relies upon "Jison" to be previously defined. The Jison.print.apply call isn't there in the non-debug mode, which is why it doesn't happen all the time.
Solved by adding var Jison = require('jison'); to the top of my grammar file between %{%}. Not a huge problem, just annoying. This could be pretty easily added to the compiled output during a debug parser generation, I think.
The text was updated successfully, but these errors were encountered:
This is still an issue, although the solution I showed above still works. I want to make sure this is an error before I submit an (extremely trivial) pull request. Not sure if this being actively maintained any more.
Generated parser in debug mode with
jison -t <grammar> <lex>
. GotReferenceError: Jison is not defined
when runningparse()
on the generated parser. Traced error back to code:in the generated output, which relies upon "Jison" to be previously defined. The
Jison.print.apply
call isn't there in the non-debug mode, which is why it doesn't happen all the time.Solved by adding
var Jison = require('jison');
to the top of my grammar file between%{%}
. Not a huge problem, just annoying. This could be pretty easily added to the compiled output during a debug parser generation, I think.The text was updated successfully, but these errors were encountered: