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

[REBOL] Re: parse, again...

From: brett:codeconscious at: 5-Nov-2001 23:39

> > >> parse "hello" [skip to end] > > == true> our "workarounds" gives true but are not so obvious. > > I think this is very obvious, this tells parse to 'skip to end' that's
skip
> beyond the last consumable character.
No I don't think so. The above parse rule has two instructions: 1) SKIP - skips a single character only in this case 2) TO END - Moves the index to the tail of the input stream. For example:
>> parse "hello" [skip mark: (print mark) to end mark: (probe tail?
mark) ] ello true == true Brett.