Compiling pure js code
Created by: Gabriano
I've tried compiling sweet's own parser.js file and got the following errror. Line 3945 is the very last line of the file. I got the same error on another pure-js file.
Thx, Eric
==> sjs -o sweet.parser.js parser.js
/usr/local/lib/node_modules/sweet.js/lib/parser.js:3901 throw e; ^ Error: Line 3945: Unexpected token () at throwError (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1204:21) at throwUnexpected (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1260:9) at expect (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1269:13) at parsePrimaryExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1594:13) at parseLeftHandSideExpressionAllowCall (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1761:48) at parsePostfixExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1808:20) at parseUnaryExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1878:16) at parseMultiplicativeExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1884:20) at parseAdditiveExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1901:20) at parseShiftExpression (/usr/local/lib/node_modules/sweet.js/lib/parser.js:1922:20)
I also ran into the same error on another pure js file.