Ron Savage > GraphViz2-Marpa > g2m.pl

Download:
GraphViz2-Marpa-2.03.tgz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

g2m.pl - Run GraphViz2::Marpa.

SYNOPSIS ^

g2m.pl [options]

        Options:
        -description graphDescription
        -help
        -input_file aDotInputFileName
        -maxlevel logOption1
        -minlevel logOption2
        -output_file aRenderedDotInputFileName
        -renderer aGraphViz2::Marpa::Renderer::GraphViz2-compatible object
        -trace_terminals anInteger

Exit value: 0 for success, 1 for failure. Die upon error.

OPTIONS ^

-description graphDescription

Read the DOT-style graph definition from the command line.

You are strongly encouraged to surround this string with '...' to protect it from your shell.

See also the -input_file option to read the description from a file.

The -description option takes precedence over the -input_file option.

Default: ''.

-help

Print help and exit.

-input_file aDotInputFileName

Read the DOT-style graph definition from a file.

See also the -description option to read the graph definition from the command line.

The -description option takes precedence over the -input_file option.

Default: ''.

See the distro for data/*.gv.

-maxlevel logOption1

This option affects Log::Handler.

See the Log::handler docs.

Default: 'notice'.

-minlevel logOption2

This option affects Log::Handler.

See the Log::handler docs.

Default: 'error'.

No lower levels are used.

-output_file aRenderedDotInputFileName

Specify the name of a file for the renderer to write.

That is, write the DOT-style graph definition to a file.

When this file and the input file are both run thru 'dot', they should produce identical *.svg files.

If an output file name is specified, an object of type GraphViz2::Marpa::Renderer::GraphViz2 is created and called after the input file has been successfully parsed.

Default: ''.

The default means the file is not written.

o -renderer => aGraphViz2::Marpa::Renderer::GraphViz2-compatible object

Specify a renderer for the parser to use.

See also output_file just above.

Default: ''.

If an output file is specified, then an object of type GraphViz2::Marpa::Renderer::GraphViz2 is created and its run() method is called.

o -trace_terminals anInteger

See the trace level in Marpa::R2::Scanless::R.

Typical values: 0, 1, 99.

Default: 0 (No tracing).

syntax highlighting: