Thanks Gabriele
I tested it and it works.
However I don't understand the "| into rule" line which can be removed
without effect (in this example).
code: [
Rebol []
; This is a program
str: "Hello World!"
print "test"
str2: {Hello "vous"}
print {test 2}
print
{alone in the line}
print {"strange" thing}
str3: "Salut {you}"
print {problem?}
]
script: load code
parse script rule: [
any [
set str string! (probe str)
| into rule
| skip
]
]
"Hello World!"
"test"
{Hello "vous"}
"test 2"
"alone in the line"
{"strange" thing}
"Salut {you}"
"problem?"
Thanks again
Regards
Patrick
----- Original Message -----
From: "Gabriele Santilli" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Monday, November 17, 2003 12:36 PM
Subject: [REBOL] Re: parse problem
>
> Hi Patrick,
>
> On Monday, November 17, 2003, 12:02:47 PM, you wrote:
>
> ppln> Hi Gabriele,
>
> ppln> No reason at all, and you are asking because it would be more simple
?
>
> Indeed. Let REBOL do the hard work for you.
>
> Then, you can do something like (not tested):
>
> parse script rule: [
> any [
> set str string! (probe str)
> | into rule
> | skip
> ]
> ]
>
> Regards,
> Gabriele.
> --
> Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer
> Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/
>
> --
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.