> As a follow-up to this, I have my code posted at
> While my admittedly clumsy grammar matches, transforming it into an AST has
> failed miserably.
> Aside from the advent calendar or the online docs at
> http://perlcabal.org/syn/S05.html, are there any other resources for
> explaining the generation of an AST from a grammar?
Yes: #perl6 -- or more specifically, moritz++ and a number of other
people who have built dozens of grammars already.