Howdy Russ:
> We can always live with workarounds... but I thought
> someone more knowledgable than I of the innards of REBOL's
> parse algorithms should at least be made aware and ponder
> if this what's truly intended. I do hope you and people at
> REBOL will offer more on this (Bo, any comments?).
>
> I'm all ears.
>
> Russ
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 ":" "_")
Or something--- bit of an in-band signaling problem
thar. Some escaping process has to go on for those colons,
eh?
Hope that's useful for ya.
-jeff