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
Upgrading from Jison 0.2.0 to 0.2.2 and rebuilding the CoffeeScript compiler causes the generated parser to fail. Looking at the diff, it appears that an lstack array was introduced, into which is pushed two different types of objects: the yyloc location, and the yyval._$ object, which have different properties. The first time the _$ is created, it assumes the existence of a previous object in the stack, causing things to break like so:
TypeError: In Cakefile, Cannot read property 'first_line' of undefined
at Object.parse (/Users/jashkenas/Desktop/Projects/coffee-script/lib/parser.js:621:63)
at /Users/jashkenas/Desktop/Projects/coffee-script/lib/coffee-script.js:26:22
at Object.run (/Users/jashkenas/Desktop/Projects/coffee-script/lib/coffee-script.js:55:28)
at /Users/jashkenas/Desktop/Projects/coffee-script/lib/cake.js:41:20
at path.js:271:19
Hi Zach.
Upgrading from Jison 0.2.0 to 0.2.2 and rebuilding the CoffeeScript compiler causes the generated parser to fail. Looking at the diff, it appears that an
lstack
array was introduced, into which is pushed two different types of objects: theyyloc
location, and theyyval._$
object, which have different properties. The first time the_$
is created, it assumes the existence of a previous object in the stack, causing things to break like so:Here's the diff of the generated
parser.js
:https://gist.github.com/878709
Hope that helps.
The text was updated successfully, but these errors were encountered: