Raku Books / Perl 6 at a Glance / Regexes and Grammars

Grammars

Grammars are the development of regular expressions. Syntactically, the grammar is defined similar to a class but using the keyword grammar. Inside, it contains tokens and rules. In the next section, we will be exploring the grammar in the examples.

Topics in this section

Course navigation

The $/ object   |   Simple parser