Course of Raku / Regexes and grammars

Grammars

Grow regexes into full grammars — tokens and rules, grammar inheritance, make/made, and action classes that turn matches into data.

  • What is a grammar — 3 exercises
    • Named regexes — 1 quiz
    • The grammar keyword — 1 quiz
  • Creating grammars — 3 exercises
    • The TOP rule
    • Parsing with parse — 1 quiz
  • Tokens and rules — 3 exercises
    • regex, token, and rule — 1 quiz
    • Significant space in rules — 1 quiz
  • Grammars, classes, and inheritance — 3 exercises
    • Grammars are classes — 1 quiz
    • Proto tokens and alternation — 1 quiz
  • The parse tree, make and made — 3 exercises
    • The match tree — 1 quiz
    • make and made — 1 quiz
  • Action classes — 3 exercises
    • Writing an action class — 1 quiz
    • Inline actions vs action classes — 1 quiz

The Complete Course of the Raku Programming Language

About the course · GitHub

Free and open source · Written by Andrew Shitov · Supported by The Perl & Raku Foundation

© 2021–2026 by Andrew Shitov