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

[REBOL] Re: Parse and and recursion local variables?

From: chris-ross:gill at: 20-Mar-2007 8:13

Petr Krenzelok wrote:
> Christian, the problem is, that 'parse can't handle paths, or am I > wrong? So - the refinement way is unlikely. But maybe I am wrong? Could > anyone elaborate, if our keywords could use refinements eventually?
Parse can now handle paths. Currently refinements are literal (that is -- parse [/local] [/local] -- holds), so I don't see any reason they couldn't technically be used in the dialect. Whether they should or not is another matter... Also, if the feature was implemented, I'd be in favour of 'first-of -- eg. [first-of [rule-1 | rule-2]] -- seems a little more descriptive than 'first or 'match. - Chris