The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/usr/bin/perl -w
#
# This is an example of using GraphViz::Parse::Yapp
# to graph a simple Yapp grammar (well, the Ruby grammar
# converted to Parse::Yapp) 

use strict;
use lib '../lib';
use GraphViz::Parse::Yapp;

my $g = GraphViz::Parse::Yapp->new('Yapp.output');
$g->as_png("yapp.png");