by habere-et-dispertire The first elf language is the sharing of emotions. Next comes their mother tongue. When elves start speaking their first programming language, then they are already onto their third language! Santa imagines raku draws inspiration from many principles of Unix philosophy In particular, localization of raku plays into the robustness principle. When writingContinue reading “Day 18 – Hallo, Wêreld!”
Category Archives: Grammars
Day 15 – An expression language for Vixen
#raku-beginners: korvo: Hi! I’m trying out Raku in stead of META II for a toy compiler. (5 minutes later) korvo: I’m merely trying to compile a little expression language because my angle of repose has slightly increased, and multiple folks have recommended Raku for parsing and lightweight compilers. (20 minutes later) korvo: [T]hanks for aContinue reading “Day 15 – An expression language for Vixen”
Day 5: Malware and Raku
This article has been written by Paula de la Hoz, cybersecurity specialist and artist. While Raku regex and tokens are meant to work on data structures (such as parsing and validating file types), they can help us to better understand malware. Malware, as any other legit binary, have some signatures within. Some “file signatures” areContinue reading “Day 5: Malware and Raku”
Day 4: Parsing Clojure namespace forms using Raku grammars
One day, I started wondering if it would be possible to parse Clojure namespace forms and generate a dependency graph of the various namespaces used in a real-world Clojure project. While that was the original motivation, I ended up down the Raku grammar rabbit hole, and had an enjoyable time learning how to use them.Continue reading “Day 4: Parsing Clojure namespace forms using Raku grammars”
RFC 145, by Eric J. Roode: Brace-matching for Perl Regular Expressions
Problem and proposal The RFC 145 calls for a new regex mechanism to assist in matching paired characters like parentheses, ensuring that they are balanced. There are many “paired characters” in more or less daily use: (), [], {}, <>, «», “”, ”, depending on your local even »«, or in the fancy world ofContinue reading “RFC 145, by Eric J. Roode: Brace-matching for Perl Regular Expressions”
RFC 112 by Richard Proctor: Assignment within a regex
Richard wanted to… Provide a simple way of naming and picking out information from a regex without having to count the brackets. I can say without hesitation that Raku (and before its rename, Perl 6) has achieved this goal — but all the details are different than proposed. The reason is two-fold. For one, RichardContinue reading “RFC 112 by Richard Proctor: Assignment within a regex”
Day 15 – Santa had too much eggnog
Santa had too much eggnog We’re just over a week from Christmas and Santa is sending his elves the final present lists. Unfortunately, Santa had a bit too much eggnog and so the list that he sent to his elves was … not the greatest. Take a look at some of it: Santa somehow managedContinue reading “Day 15 – Santa had too much eggnog”