aboutsummaryrefslogtreecommitdiff
path: root/bbot/types-parsers.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/types-parsers.hxx')
-rw-r--r--bbot/types-parsers.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/bbot/types-parsers.hxx b/bbot/types-parsers.hxx
new file mode 100644
index 0000000..eef3418
--- /dev/null
+++ b/bbot/types-parsers.hxx
@@ -0,0 +1,38 @@
+// file : bbot/types-parsers.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : TBC; see accompanying LICENSE file
+
+// CLI parsers, included into the generated source files.
+//
+
+#ifndef BBOT_TYPES_PARSERS_HXX
+#define BBOT_TYPES_PARSERS_HXX
+
+#include <bbot/types.hxx>
+
+namespace bbot
+{
+ namespace cli
+ {
+ class scanner;
+
+ template <typename T>
+ struct parser;
+
+ template <>
+ struct parser<path>
+ {
+ static void
+ parse (path&, bool&, scanner&);
+ };
+
+ template <>
+ struct parser<dir_path>
+ {
+ static void
+ parse (dir_path&, bool&, scanner&);
+ };
+ }
+}
+
+#endif // BBOT_TYPES_PARSERS_HXX