in reply to Re: Flattening REs into opcodes for Perl 6
in thread Flattening REs into opcodes for Perl 6
How does that deal with being matched against, say, "afafoobarz"? Perhaps:start: exactf "f", find_o advance goto start find_o: exactf "o" exactf "bar", done goto find_o done: end
would be more correct? Actually, come to think of it, I don't see how it deals with a case like "babylon" (it doesn't match at all) either--maybe advance should have a parameter that it jumps to if it fails?start: save exactf "f", find_o restore #to keep the balance advance goto start find_o: exactf "o", find_bar restore advance goto start find_bar: exactf "bar", done goto find_o ...
=cut
--Brent Dax
There is no sig.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Flattening REs into opcodes for Perl 6
by japhy (Canon) on Nov 03, 2001 at 04:06 UTC | |
by BrentDax (Hermit) on Nov 03, 2001 at 09:41 UTC | |
by japhy (Canon) on Nov 03, 2001 at 09:49 UTC | |
by BrentDax (Hermit) on Nov 07, 2001 at 11:11 UTC | |
by japhy (Canon) on Nov 07, 2001 at 18:52 UTC |