jamesw: August 2009 Archives

Grammars in Perl 5.10

| | Comments (0)
So inspired by both this post by moritz and the awesome Regexp::Grammars module on CPAN, I created a Perl 5.10 version of the perl 6 code (also using GraphViz::Data::Grapher).  There are a few differences, such as naming the top rule, the '' element that Regexp::Grammars creates, and the output format which comes from GraphViz::Data::Grapher (I am outputting to png since GraphViz's as_svg [well dot's SVG output, technically] outputs the wrong size for the outer svg tag).

About this Archive

This page is a archive of recent entries written by jamesw in August 2009.

jamesw: July 2009 is the previous archive.

jamesw: May 2010 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages