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

16. Creating Mini-Languages

J. J. Merelo1 
(1)
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

Problem

Many problem domains would benefit from having ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.