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

[REBOL] Re: 'Parse is peculiar! - more details

From: brett:codeconscious at: 15-Dec-2000 12:00

Hi Ingo, Good one! I stand corrected, you don't need something evil to achieve it, just another way of looking at it. Your code fails on the fourth example though, because name has a value of none. Just making a small change, it works sub-rule: [ "<WON:" (print name) to end | ( if next-part <> "" [if not name [name: copy ""] append name join "<" next-part] ) skip copy next-part to "<" ] Brett