Hi, On 23.05.2013 13:30, Peter Klügl wrote: > Hi, > > On 23.05.2013 13:09, armin.weg...@bka.bund.de wrote: >> Hi! >> >> In Ruta 2.0.2-SNAPSHOT, rules with an optional first element do not work. >> The optional part seems to be mandatory. Using >> >> DECLARE Test; >> "a"? "b" "c"{->MARK(Test, 1, 3)};
I just wanted to mention that you can write this rule now also the following way: ("a"? "b" "c"){-> Test}; which is somehow more appealing to some people ;-) Peter >> on >> >> a b c x b c >> >> marks "a b c" (0, 5) but not "b c" (8, 11). > Yes, this is a bug. Thanks for reporting this and I will fix it ASAP. > > In previous versions of the system, the optional part of leading rule > elements was completely ignored. I must have missed that situation in > the test cases since I rarely use string expressions myself because the > implementation is still inefficient (will change soon). > > Best, > > Peter > >> Cheers, >> Armin