While developing an IRC client in REBOL (it works great!), I ran into a
dilema regarding parsing strings that contain quote marks.  Perhaps the
following demonstrates the difficulty:

>> x: input
this is a test
== "this is a test"
>> print mold parse x " "
["this" "is" "a" "test"]

>> x: input
this is a "test
== {this is a "test}
>> print mold parse x " "
["this" "is" "a" "test"]

>> x: input
this is a "test"
== {this is a "test"}
>> print mold parse x " "
["this" "is" "a" "test"]

Note how the quote marks are dropped from the parsed result.

I ended up going through some contortions of replacing the quote marks with
"special symbols" (unprintable control characters), parsing the string, and
then replacing them.  But I would like to understand WHY this happens... or
if I've per chance uncovered a bug in REBOL?

Thanks,

Russ

Reply via email to