[REBOL] Re: Coffee break problem anyone?
From: g:santilli:tiscalinet:it at: 4-Nov-2003 17:20
Hi Patrick,
On Tuesday, November 4, 2003, 4:46:23 PM, you wrote:
ppln> But could you (or some parse guru) explain a bit.
ppln> I don't understand the second part of the any rule (1 1 value).
If you want to match an given integer (like for example 2) in a
block, you can't just use:
parse [2] [2]
because the integer in the rule is interpreted as a repetition,
like in:
parse "aa" [2 "a"]
so you have to use:
parse [2] [1 1 2]
So 1 1 value matches the integer referred to by 'value.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/