src/Control/UnitTest/CmdLine/Grammar.hpp file

UnitTest's command line grammar definition.

Contents

Grammar definition for parsing the command line. We use the Parsing Expression Grammar Template Library (PEGTL) to create the grammar and the associated parser. Word of advice: read from the bottom up.

Namespaces

namespace unittest
UnitTest declarations and definitions.
namespace unittest::cmd
UnitTest command line grammar definition.

Classes

struct unittest::cmd::verbose
Match and set verbose switch (i.e., verbose or quiet output)
struct unittest::cmd::charestate
Match and set chare state switch.
struct unittest::cmd::help
Match help on command-line parameters.
struct unittest::cmd::helpkw
Match help on a command-line keyword.
struct unittest::cmd::group
Match test group name(s) and only run those.
struct unittest::cmd::quiescence
Match switch on quiescence.
struct unittest::cmd::trace
Match switch on trace output.
struct unittest::cmd::version
Match switch on version output.
struct unittest::cmd::license
Match switch on license output.
template<typename keyword, typename io_tag>
struct unittest::cmd::io
Match and set io parameter.
struct unittest::cmd::keywords
Match all command line keywords.
struct unittest::cmd::read_string
Grammar entry point: parse keywords until end of string.