28 Jan
2009
28 Jan
'09
9:18 p.m.
Dave Jenkins schrieb:
Below is an example program showing what I mean. I would expect that only placeholder1 would match, but both placeholder1 and placeholder2 match and produce the same output. I even tried using proto::exact to get the program to reject placeholder2, but that made no difference.
I see that this is a problem. (What does UB stand for?) But can a correct implemented grammar be a workaround? Perhaps we can first check wehter var1_ appears in the expression. If not we can return the expression unmodified. Cheers Kim Tang