On 15 February 2014 20:09, Iain Buclaw <ibuc...@gdcproject.org> wrote: > On 14 February 2014 19:40, Rainer Schuetze <r.sagita...@gmx.de> wrote: >> >> >> I think this is by design to disallow comparison operators and binary >> operators in the same expression without paranthesis: >> >> int x = a & b < c; >> > > Yeah, I didn't buy that argument at first. Not least because it didn't > look like the conflicts came from '&' >
As soon as I introduced PrimaryExpression: ( Expression ) ; I just ended up reverting it back, so the expression parser happily accepts (a & b < c); as well as variants with multiple brackets inside. At the moment it's just good to get a D expression evaluator thats' actually working, then worry about was is invalid D later. :o) Regards Iain.