At Tue, 14 Sep 2004 12:31:44 -0400,
Uri Guttman <[EMAIL PROTECTED]> wrote:
> 
> 
> just a few musings on bootstrapping the grammar. someone mentioned the
> idea of using Perl6::Rules to help with this and i think that could be a
> great way to go for several reasons.

FWIW, this was the idea motivating the prototype parser in
languages/perl6/P6C/Parser.pm, so even though the language grammar has
changed somewhat from the one p6c aims at, it might be worth looking
at.  A word of warning, though -- at the time, we tried speeding it up
by changing P::RD to generate a big, hairy regex rather than code, and
gave up because we couldn't work around perl5 regex engine bugs.  The
touchiest feature seemed to be using "local" for captures that might
be backtracked, but I don't remember ever figuring out exactly what
reliably caused segfaults or (worse) corrupt, incorrect captures.
Though I haven't used it, my impression is that nontrivial uses of
P6::R run into these same bugs.  Just FYI,

/s

Reply via email to