[REBOL] Re: BNF grammar of REBOL for code "obfuscator"
From: sterling:rebol at: 17-Dec-2001 10:07
No need to PARSE it yourself. :)
REBOL knows all this stuff on it's own so let it do the work.
/header -- Includes REBOL header object if present.
/next -- Load the next value only. Return block with value and new position.
/library -- Force file to be a dynamic library. (Command version)
/markup -- Convert HTML and XML to a block of tags and strings.
/all -- Load all values. Does not evaluate REBOL header.
Play around with load/header and load/next. The /all refinement is
recommended if you are working with an unknown script so that no
evaluation will happen.
To remove comments, just let REBOL remove them for you and try:
save %file2.r load %.file.r
I'm sure you'll get some more input on this from others too.