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

[REBOL] Re: parse, again... (or rather: still!)

From: hallvard:ystad:helpinhand at: 6-Nov-2001 14:30

Joel Neely skrev (Tuesday 06.11.2001, kl. 07.33):
>[...] >and the final result of PARSE means > > Did the supplied rule reach the end of the string?
Well, but:
>> parse "x" [to "x" to end to end to end to end to end to "x"]
== false The rule certainly reached the end of the string (but itself couldn't be completed!)... I missed the fact that [to end] reaches the end, but doesn't thereby stop 'parse. So If I ask for more than one occurance, there will be a loop. Logical. Thanks for all help, ~H