Yes, that's right. You don't actually need to save off the entire value, just record p whenever a space is seen and at the end of it all you'll have the very last one.
-Adrian. Iñaki Baz Castillo wrote: > El Jueves, 12 de Febrero de 2009, Iñaki Baz Castillo escribió: >>> Now on each space the value is only stored. Basically you need to mark >>> the end separately from doing something about it because ever time you >>> think you see the end, it may not be the end. >> Thanks a lot. But, isn't inefficient? I mean: if 'name' is "A B C D E F G H >> I" then the % action will be called 9 times and for each time it will store >> the data in @value. > > Well, I understand, I could store the data in @value after parsing the > required "<". For that I would require to store the final value of 'p' when > leaving 'name'. :) > > Hope I'm right. Thanks. > _______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
