Parrot/PGE, parsers Parsers, Perl 6 Rules, and the Parrot Grammar Engine #7

Parser Grammar Engine (PGE)

The Parser Grammar Engine (PGE) is the Parrot subsystem that implements Perl 6 regexes.

It compiles Perl 6 regexes into Parrot subroutines that match input sequences to the patterns specified by the regexes.

For example, PGE can compile a regex pattern like

[ <alpha> | _ ] \w*

into a standalone parrot subroutine that parses identifiers.

Copyright © 2006 Patrick Michaud