XML::Handler::Machine2GraphViz;
use XML::Filter::Machine2GraphViz; my $m = Machine( .... ); binmode STDOUT; ## Short form: print machine_2_graphviz( $m )->as_png; ## Long form: my $h = XML::Handler::Machine2GraphViz->new; $m->generate_description( $h ); print $h->graphviz->as_png;
A SAX2 processor that turns SAX machine descriptions in to a GraphViz object.
Exports 1 functio by default, do
use XML::Filter::Machine2GraphViz ();
to prevent this.
Does not show the machines yet, GraphViz.pm needs to be upgraded to deal with nested graphs to do this. It does clustering, but not nested graphs at the moment (v1.4).
Barrie Slaymaker <barries@slaysys.com>
Copyright 2002, Barrie Slaymaker, All Rights Reserved.
You may use this module under the terms of the Artistic, GNU Public, or BSD licenses, your choise.
To install XML::Handler::Machine2GraphViz, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::Handler::Machine2GraphViz
CPAN shell
perl -MCPAN -e shell install XML::Handler::Machine2GraphViz
For more information on module installation, please visit the detailed CPAN module installation guide.