[REBOL] Re: parse problem
From: patrick:philipot:laposte at: 17-Nov-2003 14:02
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