Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Parse limitation ?

From: g:santilli:tiscalinet:it at: 8-Oct-2003 16:03

Hi Petr, On Wednesday, October 8, 2003, 2:06:58 PM, you wrote: PK> I would just like to point out, that 'first directive or tu/thru [a | b PK> | c] was proposed for parse enahncement some time ago, but then some PK> parse gurus (e.g. Gabriele) admitted, that parse would have to work PK> other way internally and that it is not easy achievable (am I right, PK> Gabriele?) The point is, that internally PARSE would be forced to do the equivalent of: [any [a | b | c | skip]] so even if it could be a bit faster than the above I don't think it would be of great help. More readable, maybe... so it's something I could add to compile-rules, if I get some time to work on it. In this particular case, I wouldn't use this construct at all, since it's much better to have a more complete grammar (that can make distinction between href= in a tag and outside of a tag etc.), IMHO. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/