[REBOL] Re: YAPAQ
From: hallvard:ystad:oops-as:no at: 5-Mar-2004 23:27
Dixit Elan (22.21 05.03.2004):
>Comparing your two posts I'm confused as to what you want. In post one
>the string "expression 3" was supposed to evaluate to "expression 3".
>Well, print "expression 3" will look like your first "e 3" example,
>namely minus quotation marks.
>
>If, instead, print third a (note the missing a in your example code the
>second time around) should evaluate to "e 3", then in your first post,
>you should have asked that "expression 3" evaluate to {"expression 3"}.
You're right.
>Now, I don't know where your error is: Is the error in your first post,
>and "expression 3" should have become {"expression 3"} in your example?
>Or is the error in your second post, and you do not realize that
>"expression 3" will be displayed as expression 3, whereas what you are
>looking for is
> >> print mold third a
>"e 3"
I am looking for the quotes. I want the output to be
e 3
but I cannot use 'mold, because
>> print mold first a
e1
...and I don't want the quotes when there were none in the original string.
Does this make things clearer? I've begun thinking about the parse rule myself, but I
thought I remembered someone having solved this before on this list, so I hoped to spare
the thinking (and rethinking, and...).
HY