[pypy-dev] New Javascript parser in the works

Carl Friedrich Bolz cfbolz at gmx.de
Fri Apr 27 22:11:27 CEST 2007


Carl Friedrich Bolz wrote:
> Just looking at the grammar made me note the following problem:
[snip]

hm, now that I found this problem, which grammar are you using exactly? 
The one at

http://www.mozilla.org/js/language/js20/formal/parser-grammar.html

gives the rules for addition correctly:

AdditiveExpression ==>
    MultiplicativeExpression
|  AdditiveExpression + MultiplicativeExpression
|  AdditiveExpression - MultiplicativeExpression

or did you just rewrite it incorrectly?

Cheers,

Carl Friedrich



More information about the Pypy-dev mailing list