Hi again,
Once again, apologies in advance for the likely noob-ish question.
I'm now successfully running jison (in both a linux vm and native
Win7) and the examples are working fine. However I'm getting a Syntax
Error when parsing my own lex/grammar files. Unlike the other errors
I've gotten, this one doesn't seem to offer any hints about where I
can go to trace it down. The full stack trace is here:
http://dpaste.com/628092/
Any guidance as to how I can debug something like this? I believe
it's likely a result of me attempting to use the newly added start
conditions feature, however when I remove all start conditions I get a
similar: "SyntaxError: Unexpected token {" error.
thanks,
Cory
On Wed, Oct 5, 2011 at 2:54 PM, Cory Zue <czue@dimagi.com> wrote: > Hi again, > > Once again, apologies in advance for the likely noob-ish question. > > I'm now successfully running jison (in both a linux vm and native > Win7) and the examples are working fine. However I'm getting a Syntax > Error when parsing my own lex/grammar files. Unlike the other errors > I've gotten, this one doesn't seem to offer any hints about where I > can go to trace it down. The full stack trace is here: > http://dpaste.com/628092/ > > Any guidance as to how I can debug something like this? I believe > it's likely a result of me attempting to use the newly added start > conditions feature, however when I remove all start conditions I get a > similar: "SyntaxError: Unexpected token {" error. > > thanks, > Cory > Could you post the grammar (or a stripped down version) that is failing? To debug, I would create a clean grammar file and selectively add in rules until the error occurs. -- Zach Carter
On Wed, Oct 5, 2011 at 3:56 PM, Zachary Carter <zack.carter@gmail.com> wrote: > On Wed, Oct 5, 2011 at 2:54 PM, Cory Zue <czue@dimagi.com> wrote: >> Hi again, >> >> Once again, apologies in advance for the likely noob-ish question. >> >> I'm now successfully running jison (in both a linux vm and native >> Win7) and the examples are working fine. However I'm getting a Syntax >> Error when parsing my own lex/grammar files. Unlike the other errors >> I've gotten, this one doesn't seem to offer any hints about where I >> can go to trace it down. The full stack trace is here: >> http://dpaste.com/628092/ >> >> Any guidance as to how I can debug something like this? I believe >> it's likely a result of me attempting to use the newly added start >> conditions feature, however when I remove all start conditions I get a >> similar: "SyntaxError: Unexpected token {" error. >> >> thanks, >> Cory >> > > Could you post the grammar (or a stripped down version) that is > failing? To debug, I would create a clean grammar file and selectively > add in rules until the error occurs. I was able to debug it this way. Had something to do with a bad whitespace character I think (?). Thanks for the help!