aboutsummaryrefslogtreecommitdiff
path: root/build2/types-parsers.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-01 18:24:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-01 19:30:26 +0300
commit70317569c6dcd9809ed4a8c425777e653ec6ca08 (patch)
tree07a538b296933e9e2a1f81088f8fcc8da3f749ad /build2/types-parsers.hxx
parentcbec9ea8841c8a58b2d50bb628b28aea7a6fe179 (diff)
Add hxx extension for headers
Diffstat (limited to 'build2/types-parsers.hxx')
-rw-r--r--build2/types-parsers.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/build2/types-parsers.hxx b/build2/types-parsers.hxx
new file mode 100644
index 0000000..adbc5c3
--- /dev/null
+++ b/build2/types-parsers.hxx
@@ -0,0 +1,38 @@
+// file : build2/types-parsers.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+// CLI parsers, included into the generated source files.
+//
+
+#ifndef BUILD2_TYPES_PARSERS_HXX
+#define BUILD2_TYPES_PARSERS_HXX
+
+#include <build2/types.hxx>
+
+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_HXX