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

NAME

marpa-test - Test Marpa grammars during development

VERSION

Version 0.02

OPTIONS

-g <grammar>

A file containing the grammar to be tested (- for stdin)

-i <input>

A file containing one or more input texts (- for stdin)

-s <separator>

A separator for multiple test texts ('n' to make each line a separate test)

-t <template>

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

--html

If specified (and no template file is specified), will use a default HTML template embedded in the utility to format the output.

-f

Force ok/bad output table for multiple test inputs; otherwise will just return a count of good/bad parses.

<test>...

Any strings supplied on the command line will be parsed individually.

AUTHOR

Michael Roberts (michael@vivtek.com)

DESCRIPTION

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.