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

NAME

parse.pl - Run Graph::Easy::Marpa::Parser.

SYNOPSIS

parse.pl [options]

        Options:
        -dot_input_file aDotInputFileName
        -format outputGraphFormat
        -help
        -input_file inFileName
        -maxlevel logOption1
        -minlevel logOption2
        -output_file aDotOutputFile
        -rankdir LR or RL or TB or BT
        -report_items 0 or 1
        -tokenFile aTokenFileName

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

Typical usage:

        cat data/node.05.cooked
        perl -Ilib scripts/parse.pl -i data/node.05.cooked

You can use scripts/parse.sh to simplify this process:

        scripts/parse.sh data/node.05.cooked

OPTIONS

-dot_input_file aDotInputFileName

Specify the name of a file that the rendering engine can write to, which will contain the input to dot (or whatever). This is good for debugging.

Default: ''.

If '', the file will not be created.

-format outputGraphFormat

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

-help

Print help and exit.

-input_file inFileName

Specify which data set to read.

Typical names are data/graph.14.cooked etc.

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 aDotOutputFile

A file to which the output from dot is written.

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

The default is ''.

-rankdir LR or RL or TB or BT

Specify the rankdir of the graph as a whole.

Default: TB (top to bottom).

-report_items 0 or 1

Report the items recognized in the cooked file.

The default value is 0.

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 ''.