File: yapp.pl

package info (click to toggle)
libgraphviz-perl 2.24-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 952 kB
  • sloc: perl: 2,174; makefile: 8
file content (14 lines) | stat: -rwxr-xr-x 295 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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");