Re: Lost in Parenthesis !
Monday, February 19, 2007 11:05 AM
Well, I've hesitated a loooong time before posting a message on this forum and as soon as I did it, I found the answer to my problem...
In fact, the best way is, in the lowest level of expression ("primaryExpression" in my case), to reference the highest level ("expression") with parenthesis.
logicalAndExpression ("or"^ logicalAndExpression)*
equalityExpression ("and"^ equalityExpression)*
(EQUALS^ (relationalExpression | ifAffectBlock))*
((PLUS^ | MOINS^) multiplicativeExpression)*
((MUL^ | DIV^ | MOD^ ) primaryExpression)*
(fonction4GL) => fonction4GlBlock
| (action4GL) => actionBlock
| (AVAILABLE) => AVAILABLE identTable
| (LOCKED) => LOCKED identTable
| LPAREN! (expression | ifAffectBlock) RPAREN!
Hope it'll help !