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

FileConv'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 fileconv
File converter declarations and definitions.
namespace fileconv::cmd
File converter command line grammar definition.

Classes

struct fileconv::cmd::verbose
brief Match and set verbose switch (i.e., verbose or quiet output)
struct fileconv::cmd::charestate
Match and set chare state switch.
template<typename keyword, typename io_tag>
struct fileconv::cmd::io
Match and set io parameter.
struct fileconv::cmd::help
Match help on command-line parameters.
struct fileconv::cmd::helpkw
Match help on a single command-line or control file keyword.
struct fileconv::cmd::quiescence
Match switch on quiescence.
struct fileconv::cmd::trace
Match switch on trace output.
struct fileconv::cmd::version
Match switch on version output.
struct fileconv::cmd::license
Match switch on license output.
struct fileconv::cmd::keywords
Match all command line keywords.
struct fileconv::cmd::read_string
Grammar entry point: parse keywords until end of string.