The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

gem.pl - Run Graph::Easy::Marpa::Lexer and Graph::Easy::Marpa::Parser.

SYNOPSIS

gem.pl [options]

        Options:
        -cooked_file aCookedFileName
        -description graphDescription
        -format outputGraphFormat
        -help
        -input_file aRawFileName
        -maxlevel logOption1
        -minlevel logOption2
        -output_file aGraphOutputFile
        -token_file aTokenFileName

All switches can be reduced to a single letter (except min and max).

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

OPTIONS

-cooked_file aCookedFileName

The name of a CSV file of cooked tokens to write. This file can be input to the parser.

The is no default value.

-description graphDescription

Specify a graph description string for the DFA to process.

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.

There is no default value.

-format outputGraphFormat

The format (e.g. 'svg') to pass to the rendering engine.

-help

Print help and exit.

-input_file aRawFileName

Read the graph description string from a file.

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

The whole file is slurped in as 1 graph.

The first lines of the file can start with /\s*#/, and will be discarded as comments.

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

There is no default value.

-maxlevel logOption1

This option affects Log::Handler.

See the Log::handler docs.

The default maxlevel is 'info'. Another typical value is 'debug'.

-minlevel logOption2

This option affects Log::Handler.

See the Log::handler docs.

The default minlevel is 'error'.

No lower levels are used.

o -output_file aGraphOutputFile

A file to which the graph is written.

If not specified (the default), the graph is not saved.

The default is ''.

o -tokenFile aTokenFileName

The list of tokens generated by the parser will be written to this file.

If not specified (the default), the tokens are not saved.

The default is ''.