[REBOL] Re: Parsing comment
From: g:santilli:tiscalinet:it at: 26-Sep-2002 1:22
On Thursday, September 26, 2002, 2:30:45 AM, you wrote:
run> 10 + 10
run> means something to the Rebol interpretation process, but
run> 10+10 does not have the same meaning, yet you say it can be
>> length? [a + b]
>> length? [a+b]
>> a+b: func [x] [print x]
>> a+b "hello"
REBOL needs spaces to separate words.
>> foreach value [a + b] [print type? value]
You just have three words. REBOL does not make any assumption on
their meaning, like other languages do.
>> foreach value [print (a + b)] [print type? :value]
>> foreach value second [print (a + b)] [print type? :value]
This shows what I was saying in the last message.
Now, you do whatever you wanted with that block of values, even
interpreting it with your own interpreter. Or, you could give
those words a meaning different from the usual one (like Ladislav
did in his message) and let the REBOL interpreter evaluate it.
Still, you can't say that that block block will "print the sum of
a and b on screen" unless you know the context in which the
is "evaluated". (We're already making assumptions,
when we talk about "expressions" and "evaluation"...)
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r