© J.J. Merelo 2020
J. MereloRaku Recipeshttps://doi.org/10.1007/978-1-4842-6258-0_16

16. Creating Mini-Languages

J. J. Merelo1 
Granada, Granada, Spain

Grammars are a unique feature of Raku; they are a powerful way to process text with structure in it, and they can be used to create mini-languages. You can use these mini-languages for many different purposes, from configuration to real and actual programming languages. Like regular expressions, mini-languages are the kind of thing that you will wish you would have known about before, because they will save so much trouble thanks to their expressivity. We’ll dive into them next.

Recipe 16-1. Use Mini-Languages That Show Off Their Possibilities


Many problem domains would benefit from having ...

Get Raku Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.