parse.pl - Run MarpaX::Demo::StringParser::Parser.
This program calls MarpaX::Demo::StringParser to parse the DASH file (-description or -input_file), and optionally displays the parsed tokens as a tree.
Note: Nothing is printed by default. Hence the use of '-max info' below.
parse.pl [options]
Options: -description DASHText -help -input_file aDASHFileName -maxlevel logOption1 -minlevel logOption2
Exit value: 0 for success, 1 for failure. Die upon error.
Typical usage:
perl -Ilib scripts/parse.pl -de '[node]{color:blue; label: "Node name"}' -max info
You can use scripts/parse.sh to simplify this process, but it assumes you're input file is in data/:
scripts/parse.sh node.04 -max info
Specify a graph description string to parse.
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: ''.
Print help and exit.
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.
Lines of the file can start with m!^(?:#|//)!, and will be discarded as comments.
This option affects Log::Handler.
See the Log::handler docs.
Default: 'notice'.
Default: 'error'.
No lower levels are used.
To install MarpaX::Demo::StringParser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Demo::StringParser
CPAN shell
perl -MCPAN -e shell install MarpaX::Demo::StringParser
For more information on module installation, please visit the detailed CPAN module installation guide.