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”