diff options
Diffstat (limited to 'mod/types-parsers.hxx')
-rw-r--r-- | mod/types-parsers.hxx | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/mod/types-parsers.hxx b/mod/types-parsers.hxx index 1d8dbe4..d48ae0b 100644 --- a/mod/types-parsers.hxx +++ b/mod/types-parsers.hxx @@ -1,5 +1,4 @@ // file : mod/types-parsers.hxx -*- C++ -*- -// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file // CLI parsers, included into the generated source files. @@ -8,9 +7,12 @@ #ifndef MOD_TYPES_PARSERS_HXX #define MOD_TYPES_PARSERS_HXX +#include <regex> + #include <libbpkg/manifest.hxx> // repository_location +#include <libbbot/manifest.hxx> // interactive_mode -#include <web/xhtml-fragment.hxx> +#include <web/xhtml/fragment.hxx> #include <libbrep/types.hxx> #include <libbrep/utility.hxx> @@ -40,6 +42,15 @@ namespace brep parse (dir_path&, bool&, scanner&); }; + // Parse time of day specified in the `hh:mm` form. + // + template <> + struct parser<duration> + { + static void + parse (duration&, bool&, scanner&); + }; + template <> struct parser<bpkg::repository_location> { @@ -48,6 +59,13 @@ namespace brep }; template <> + struct parser<bbot::interactive_mode> + { + static void + parse (bbot::interactive_mode&, bool&, scanner&); + }; + + template <> struct parser<page_form> { static void @@ -67,6 +85,27 @@ namespace brep static void parse (web::xhtml::fragment&, bool&, scanner&); }; + + template <> + struct parser<pair<std::regex, string>> + { + static void + parse (pair<std::regex, string>&, bool&, scanner&); + }; + + template <> + struct parser<build_order> + { + static void + parse (build_order&, bool&, scanner&); + }; + + template <> + struct parser<build_email> + { + static void + parse (build_email&, bool&, scanner&); + }; } } |