parrotcode: Untitled | |
Contents | Compilers |
PGE::P6Rule Grammar
This file contains a "reference grammar" that closely describes the syntax for perl 6 rules. It closely models the parser used by PGE's "p6rule" compiler function, which is presently a recursive descent parser. Eventually the parser is likely to be replaced by a table-based (shift/reduce) parser, so that some of the rules below will disappear.
Still, this grammar may be useful for testing and for understanding the syntax of Perl 6 grammars. Patches, discussion, and comments welcome on the perl6-compiler mailing list.
Patrick Michaud (pmichaud@pobox.com) is the author and maintainer. Patches and suggestions are welcome on the Perl 6 compiler list (perl6-compiler@perl.org).
|