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

MeshConv's command line grammar definition.


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.


namespace meshconv
Mesh converter declarations and definitions.
namespace meshconv::cmd
Mesh converter command line grammar definition.


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