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

RNGTest'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. Credit goes to Colin Hirsch (pegtl@cohi.at) for PEGTL. Word of advice: read from the bottom up.

Namespaces

namespace rngtest
RNGTest declarations and definitions.
namespace rngtest::cmd
RNGTest command line grammar definition.

Classes

struct rngtest::cmd::verbose
Match and set verbose switch (i.e., verbose or quiet output)
struct rngtest::cmd::charestate
Match and set chare state switch.
struct rngtest::cmd::control
Match and set control (i.e., input deck) file name.
struct rngtest::cmd::helpctr
Match help on control file keywords.
struct rngtest::cmd::help
Match help on command-line parameters.
struct rngtest::cmd::helpkw
Match help on a command-line keyword.
struct rngtest::cmd::quiescence
Match switch on quiescence.
struct rngtest::cmd::trace
Match switch on trace output.
struct rngtest::cmd::keywords
Match all command line keywords.
struct rngtest::cmd::read_string
Grammar entry point: parse keywords until end of string.