marpa-test - Test Marpa grammars during development
Version 0.02
A file containing the grammar to be tested (- for stdin)
A file containing one or more input texts (- for stdin)
A separator for multiple test texts ('n' to make each line a separate test)
A template for the output; if not specified, will write some sensible things. (See documentation for MarpaX::Tester for the data structure passed to the template.)
If specified (and no template file is specified), will use a default HTML template embedded in the utility to format the output.
Force ok/bad output table for multiple test inputs; otherwise will just return a count of good/bad parses.
Any strings supplied on the command line will be parsed individually.
Michael Roberts (michael@vivtek.com)
marpa-test reads in a Marpa grammar and optionally some test text, and tests the grammar against the texts, generating a useful report if desired. It can thus be used both for testing grammars during development and for presenting the results of key explanatory input.
To install MarpaX::Tester, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MarpaX::Tester
CPAN shell
perl -MCPAN -e shell install MarpaX::Tester
For more information on module installation, please visit the detailed CPAN module installation guide.