Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1260d7b12d3dce6ac9f6db19f9a9904c > files > 31

perl-GraphViz-2.04-6.fc15.noarch.rpm

#!/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");