aboutsummaryrefslogtreecommitdiff
path: root/bdep/new-parsers.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/new-parsers.hxx')
-rw-r--r--bdep/new-parsers.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/bdep/new-parsers.hxx b/bdep/new-parsers.hxx
new file mode 100644
index 0000000..c496314
--- /dev/null
+++ b/bdep/new-parsers.hxx
@@ -0,0 +1,38 @@
+// file : bdep/new-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 BDEP_NEW_PARSERS_HXX
+#define BDEP_NEW_PARSERS_HXX
+
+#include <bdep/new-types.hxx>
+
+namespace bdep
+{
+ namespace cli
+ {
+ class scanner;
+
+ template <typename T>
+ struct parser;
+
+ template <>
+ struct parser<cmd_new_type>
+ {
+ static void
+ parse (cmd_new_type&, bool&, scanner&);
+ };
+
+ template <>
+ struct parser<cmd_new_lang>
+ {
+ static void
+ parse (cmd_new_lang&, bool&, scanner&);
+ };
+ }
+}
+
+#endif // BDEP_NEW_PARSERS_HXX