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

[REBOL] Re: parse, again...

From: robert:muench:robertmuench at: 5-Nov-2001 11:31

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > [nitsch-lists--netcologne--de] > Sent: Sunday, November 04, 2001 1:14 AM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: parse, again... > difference is > >> parse "hello" [to end skip] > == false > [to end skip] will stop, but gives false.
Hi, I just jump in maybe I miss the point but 'to end' goes beyond the last character and a following 'skip' tries to go even beyond this virtual end-tag. Of course parse returns false.
> >> 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.
> i would like to get "stop" and "true", and somehow, > [thru end] would make sense to me (its what one thinks of first?)
If we define 'end as the position behind the last consumable character it doesn't make sense to go thru the end. It's OK to go/skip to the end. Robert