[REBOL] Parsing Rebol source code
From: robert::muench::robertmuench::de at: 31-Dec-2001 15:53
Hi, I want to parse some Rebol source code. For this I use load/next the
following way:
; parse the sourcefile
blk-rule: [
some [
str: newline
| ";" [thru newline | to end]
| [ "[" | "(" ] blk-rule
| [ "]" | ")"]
| skip (
set [value new] load/next str
?? value
) :new
]
]
parse sourcefile blk-rule
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.
--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax : +49 (0)721 8408 9112
Web : http://www.robertmuench.de