Parsing Perl 6
(This is an overview -- more details about parsers in Parrot in tomorrow's talk!)
Multi-layer parser:
- Block and statement-level constructs parsed "top-down"
- Expressions and operators parsed "bottom-up"
- Terms and tokens parsed either "top-down" or using specialized Parrot subs
- ... all of the top-down and bottom-up parse components are specified using Perl 6 syntax:
- /languages/perl6/src/grammar_rules.pg
- /languages/perl6/src/grammar_optok.pg