parse.pl - Run Graph::Easy::Marpa::Parser.
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
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.
The format (e.g. 'svg') to pass to the rendering engine.
Print help and exit.
Specify which data set to read.
Typical names are data/graph.14.cooked etc.
There is no default value.
This option affects Log::Handler.
See the Log::handler docs.
The default maxlevel is 'info'. Another typical value is 'debug'.
The default minlevel is 'error'.
No lower levels are used.
A file to which the output from dot is written.
If not specified (the default), the graph is not saved.
The default is ''.
Specify the rankdir of the graph as a whole.
Default: TB (top to bottom).
Report the items recognized in the cooked file.
The default value is 0.
The list of tokens generated by the parser will be written to this file.
If not specified (the default), the tokens are not saved.
To install Graph::Easy::Marpa, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graph::Easy::Marpa
CPAN shell
perl -MCPAN -e shell install Graph::Easy::Marpa
For more information on module installation, please visit the detailed CPAN module installation guide.