[REBOL] Re: parse, again...
From: lmecir::mbox::vol::cz at: 1-Nov-2001 22:43
Hi Halvard,
> But try
> html-code: [ copy tag ["<" thru ">"] | copy txt [to "<" | to end] (print
txt)]
> parse/all read http://www.rebol.com/ [to "<" some html-code]
>
> ...and see what you get... (Why?)
>
> ~H
>
> Praetera censeo Carthaginem esse delendam
your bug simplified:
rule1: [to end]
parse/all "a" [some rule1]
you cannot write a rule like this, because parse will run forever (hint:
rule1 is always fulfilled). This is why the correct form of your rule should
be:
html-code: [ copy tag ["<" thru ">"] | copy txt [to "<" | some skip]
(print txt)]
parse/all read http://www.rebol.com/ [to "<" some html-code]
Cheers
Ladislav