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

[REBOL] Re: Strange parse "bug"/behavior?

From: petr::krenzelok::trz::cz at: 17-Mar-2007 15:40

rebOldes wrote:
> rule: [any [copy char skip 2 (prin char)]] > parse/all "this is a test string" rule > ;> tthhiiss iiss aa tteesstt ssttrriinngg== true > > so it looks that the number means to repeat the action 2 times > it's feature, not a bug > > d. >
ahh, now I see - I wondered WHAT action should it repeat - now I see - the paren block action, because:
>> rule: [any [copy char skip 2]]
== [any [copy char skip 2]]
>> parse/all "this is a test string" rule
** Script Error: Invalid argument: ** Near: parse/all "this is a test string" rule -pekr-