[REBOL] Re: Parsing Rebol source code
From: robert:muench:robertmuench at: 31-Dec-2001 16:38
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
> Robert M. Muench
> Sent: Monday, December 31, 2001 3:53 PM
> To: Rebollist
> Subject: [REBOL] Parsing Rebol source code
> This works and you can see 'value being set to all the available value
> step-by-step. Now try chaing the ?? into probe and it won't work anymore! Why
> this? I want to get the type? of value but using: print type? value results in
> an error.
Hi, well I solved it, stupid thing. If you use probe you have to use :value ;-))
Anyway, here is one more. I refer to the source from my last post. load/next
will return the rest of the script as string, and that's what 'new is being set
to. By being a string all the type information ist lost. I can't write a rule
like this and insert it into the some scoped rule block:
| 'include file!
With this rule, I want to parse for the word 'include (which has type word!) and
for a file! type following it. That's not possible because the input to parse is
now a string and file! hasn't a meaning for the string parts... Any idea how to
use parse and load/next to get all the type information Rebol has too? Robert