[REBOL] Re: Simple parse question
From: lmecir:mbox:vol:cz at: 14-Apr-2003 20:03
Hi,
Tom wrote:
> the rule I would expect to use (and did try last night) is
>
> words: [some [any { } copy w [[to { }] | [to end break]](append result w
> )]]
>
> but that get into a loop same as it would without the 'break.
>
> more confusing is the result
>
> >> result copy [] parse {Don't "Mess Up"} words
> >> result
> == ["Don't" {"Mess} {Up"} "Don't" {"Mess} {Up"} none none none ... ...
>
> the string is duplicated, and there is a long run of 'none.
>
> (this is /core 2.5.5 on solaris)
I wonder whether this deserves a feedback or not, but it doesn't look allright to me,
that is why I asked.
Regards
-Ladislav