Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d2e2664df18d2471e3adc441ef32b114 > files > 34

perl-GraphViz-2.240.0-3.mga7.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");