Skip to content

Make CoffeeScript work with jison 0.4.14+ - #3794

Merged
michaelficarra merged 1 commit into
jashkenas:masterfrom
lydell:jison-update
Jan 15, 2015
Merged

michaelficarra merged 1 commit into
jashkenas:masterfrom
lydell:jison-update

Conversation

@lydell

@lydell lydell commented Jan 15, 2015

Copy link
Copy Markdown
Collaborator

Since zaach/jison commit 3548861b, parser.lexer is never modified anymore (a
copy of it is made, and that copy is modified instead). CoffeeScript itself
modifies parser.lexer and then accesses those modifications in the custom
parser.yy.parseError function, but that of course does not work anymore. This
commit puts the data that parser.yy.parseError needs directly on the parser
so that it is not lost.

Supersedes #3603. Fixes #3608 and zaach/jison#243.

Since zaach/jison commit 3548861b, `parser.lexer` is never modified anymore (a
copy of it is made, and that copy is modified instead). CoffeeScript itself
modifies `parser.lexer` and then accesses those modifications in the custom
`parser.yy.parseError` function, but that of course does not work anymore. This
commit puts the data that `parser.yy.parseError` needs directly on the `parser`
so that it is not lost.

Supersedes jashkenas#3603. Fixes jashkenas#3608 and zaach/jison#243.
michaelficarra added a commit that referenced this pull request Jan 15, 2015
Make CoffeeScript work with jison 0.4.14+
@michaelficarra
michaelficarra merged commit 67aaa8b into jashkenas:master Jan 15, 2015
@lydell
lydell deleted the jison-update branch January 15, 2015 17:19
EsrefDurna pushed a commit to EsrefDurna/coffeescript that referenced this pull request Nov 12, 2025
Make CoffeeScript work with jison 0.4.14+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems using lib/coffee-script/parser.js

3 participants