jswebtools / language-ecmascript

Haskell library: ECMAScript parser, pretty-printer and additional tools
Other
46 stars 26 forks source link

Error while parsing valid ++< sequence #63

Closed sinelaw closed 9 years ago

sinelaw commented 9 years ago

Example:

for(var l=1;l++<0;) { }

Resulting error:

user error ("parse.js" (line 1, column 17): unexpected '<' expecting end of "++")

achudnov commented 9 years ago

Which branches have you tested it with? master? es5?

sinelaw commented 9 years ago

Works on es5 branch, doesn't work on hackage version

achudnov commented 9 years ago

Thanks. The Hackage version is still legacy code that has a lot of bugs that can't be fixed easily due to limitations of the implementation. The es5 branch is a complete rewrite that avoids these limitations. (It still has a few bugs that I haven't ironed out yet.) So, I won't be fixing any non-trivial bugs for the 0.* versions as they are going to be superseded by the es5 branch (proposed version 5.0.0.0).