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

Trying to rebuild Jison parser #1146

Closed
jscriptcoder opened this issue Feb 20, 2011 · 4 comments
Closed

Trying to rebuild Jison parser #1146

jscriptcoder opened this issue Feb 20, 2011 · 4 comments
Labels

Comments

@jscriptcoder
Copy link

Hi guys,

I'm trying to run "cake build:parser" without making any change in the source code but after rebuilding the Jison parser there seem to be some changes in lib/parser.js that is causing an error when trying to run "cake" again:

TypeError: In Cakefile, Cannot read property 'first_line' of undefined

The problem seems to be in parser.js "lib/parser.js:621". I can see new code that wasn't there before rebuilding the parser:

yyval._$ = {
    first_line: lstack[lstack.length-(len||1)].first_line,
    last_line: lstack[lstack.length-1].last_line,
    first_column: lstack[lstack.length-(len||1)].first_column,
    last_column: lstack[lstack.length-1].last_column,
};

I was expecting no changes in parse.js since as I said I'm not modifying anything in the grammar or anywhere, so I was wondering whether I have some different version of Jison ? I'm using Jison v0.2.2

Any idea about what might be happening ?

Thanks

@jscriptcoder
Copy link
Author

It was down to the version. I installed Jison 0.2.0 and now there is no problem when I create the parser

@jashkenas jashkenas reopened this Mar 20, 2011
@jashkenas
Copy link
Owner

This is (I think) a Jison bug in 0.2.2. Use version 0.2.1 for now. I've opened a ticket for the issue here:

https://github.com/zaach/jison/issues#issue/34

@thejh
Copy link
Contributor

thejh commented Mar 21, 2011

zaach confirmed that it's a jison bug.

@jashkenas
Copy link
Owner

And the bug has since been fixed ... closing the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants