Enki 1.1 Released
BCS
BCS at pathlink.com
Tue Jul 18 13:36:47 PDT 2006
pragma wrote:
[...]
> No worries. I'm *way* behind schedule on everything these days (being off your
> ass with a bad cold will do that). I'll get to folding your contributions in as
> soon as I can get to it. :)
>
> Thank you for helping out !
>
> - EricAnderton at yahoo
Some cases of negation will result in illegal code
{
...
mismatch53:
// nothing to label
}
this patch should fix the problem. (don't count on it to apply, I had to
hand edit it to remove my other changes.) Another solution would be to
make an emptyExpression render to "{}" rather than nothing.
*** enki/Expression.d Mon Jul 17 18:15:04 2006
--- enki/Expression.d Mon Jul 17 22:55:01 2006
***************
*** 776,792 ****
emit("{//Negate");
indent();
render(expr,gotoMatch,gotoMismatch);
render(matchLabel);
render(fail);
render(mismatchLabel);
+ if(pass.isEmpty) emit("{}");
render(pass);
unindent();
emit("}");
}
}
public String toBNF(){
return "!" ~ expr.toBNF();
--- 776,791 ----
More information about the Digitalmars-d-announce
mailing list