Hi Jeff,
hmmm, could you please explain what exactly goes on there?
It looks like it would be nice to understand it, but at the
moment, it looks, well, not exactly like C, but is as
(un)understandable.
thanks,
Ingo
Those were the words of [EMAIL PROTECTED]:
<...>
> Well, you gotta tell PARSE what exactly it is you want it to
> do. Here's a quick and dirty approach.
>
> result: copy []
>
> foreach [rule thing] ['space-piece " " end-piece 'end][
> set rule compose [copy x to (thing) (to-paren [append result x])]
> ]
>
> parse {this is a "test"} [some space-piece end-piece]
> print mold result
>
> == ["this" "is" "a" {"test"}]
>
> Of course the (append result x) might be changed to:
>
> (append result replace/all x ":" "_")
<...>
-- _ . _
ingo@)|_ /| _| _ <We ARE all ONE www._|_o _ _ ._ _
www./_|_) |o(_|(/_ We ARE all FREE> ingo@| |(_|o(_)| (_|
http://www.2b1.de/Rebol/ ._| ._|