[REBOL] Re: parsing..
From: greggirwin::mindspring::com at: 8-Jan-2005 17:03
Hi Eric,
EH> The parse command seems to need improvement unless I'm not understanding
EH> it...
EH> Anyway, if this is possible with a single line, please show me an
EH> example since the one on the language dictionary seems very limited. And
EH> if it isn't possible currently, what would be necessary to make it possible?
REBOL's PARSE command is quite different from REXX's template based
approach; just different goals. REXX's approach falls somewhere
between the two modes PARSE has in REBOL (simple splitting and true
grammar definition).
It shouldn't be too hard to write something that emulates the REXX
approach, but I don't know of any that already exist. If REXX
compatibility isn't critical (and I can't imagine that it is), taking
the spirit of a template based parsing function, and making a very
REBOLish version could be very cool.
-- Gregg