File: yacc.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 (15 lines) | stat: -rwxr-xr-x 265 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -w
#
# This program shows the usage of GraphViz::Parse::Yacc
# to graph the Perl grammar

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

my $g = GraphViz::Parse::Yacc->new('perly.output');
#print $g->as_text();
$g->as_png("yacc.png");