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

[REBOL] Re: About Parsing

From: arolls:bigpond:au at: 17-Jul-2001 3:11

I think it's a problem to use in 'opt in a some block, because opt == [value | none] when you do some [value | none] if 'value isn't matched then 'none is matched. (Easy to do!) When none is matched, the cursor is not advanced. Therefore it just keeps matching none forever. You could replace all that with: some [ value1 | value2 | value3 ... | skip ] If it doesn't match any of your values, then it advances the cursor with 'skip. Or Brett's way seems even better.