diff options
Diffstat (limited to 'build2/types-parsers.hxx')
-rw-r--r-- | build2/types-parsers.hxx | 38 |
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 |