I continue working on my JavaCC grammar for ECMAScript 5.1. It actually goes quite well, I think I\'ve covered most of the expressions now.
I have now two questions, bot
I think for the "restricted productions" you can do this
void PostfixExpression() : {} { LeftHandSideExpression() ( LOOKAHEAD( "++", {getToken(0).beginLine == getToken(1).beginLine}) "++" | LOOKAHEAD( "--", {getToken(0).beginLine == getToken(1).beginLine}) "--" | {} ) }