[REBOL] Re: Simple parse question
From: tomc:darkwing:uoregon at: 14-Apr-2003 9:47
Good morning Ladisav,
it is true, I was only answering the specific question
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)
On Mon, 14 Apr 2003, Ladislav Mecir wrote: