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

[REBOL] Re: Parse versus Regular Expressions

From: g:santilli:tiscalinet:it at: 3-Apr-2003 11:10

Hi Ladislav, On Thursday, April 3, 2003, 9:39:43 AM, you wrote: LM> Noticeably, the "dumb" approach to the equation rewriting: LM> y: [[y #"a"] | #"b"] LM> didn't "fire" any error, stack overflow, or any unusual exception. Nevertheless, it didn't work: LM> parse "b" y ; == true LM> parse "ba" y ; == false LM> Any ideas?
>> r: [r]
== [r]
>> parse "abc" r
== false It looks like, that PARSE notices the endless loop, and makes the rule fail. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r