[REBOL] Re: Parsing for fun and profit
From: lmecir:mbox:vol:cz at: 24-Sep-2001 23:17
Hi Gary,
I think, that the "double parsing" may be convenient in some cases. If you
really know, that the whitespace characters serve only as "delimiters"
through the whole text, then there is a possibility to "swap" the order of
operation and write the parse rules more efficiently like this:
preparsed: parse data none
parse preparsed [
thru "REV:" copy vRev to "Processor"
thru "Board" copy vBoard to "Rev"
]
etc. In the case the whitespace could have a different "meaning" somewhere,
I would suggest to use a different approach, i.e. to use only single parse.
Regards
Ladislav