aboutsummaryrefslogtreecommitdiff
path: root/build2/types-parsers
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-11 16:24:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-11 16:24:37 +0200
commite58957d6491a08ec212958457c29a14eec787279 (patch)
treeef8d6f76436d9d404a1f91f4b4f80921e967095f /build2/types-parsers
parenta5592d2ddbce898766dd103ae9a4fe6887ab5209 (diff)
Implement --config-{guess,sub} options
Diffstat (limited to 'build2/types-parsers')
-rw-r--r--build2/types-parsers38
1 files changed, 38 insertions, 0 deletions
diff --git a/build2/types-parsers b/build2/types-parsers
new file mode 100644
index 0000000..735b39a
--- /dev/null
+++ b/build2/types-parsers
@@ -0,0 +1,38 @@
+// file : build2/types-parsers -*- C++ -*-
+// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+// CLI parsers, included into the generated source files.
+//
+
+#ifndef BUILD2_TYPES_PARSERS
+#define BUILD2_TYPES_PARSERS
+
+#include <build2/types>
+
+namespace build2
+{
+ namespace cl
+ {
+ 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 // BUILD2_TYPES_PARSERS