diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-07 15:22:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-07 15:22:51 +0200 |
commit | 1c36adab776a900adc7325f412b1c8dd61b1a346 (patch) | |
tree | 0227b8c5697d24a862aedd59b9bfe28cc84e91b4 /bdep/types-parsers.hxx | |
parent | 2e2c3a81b47c650334f5767ddb4ebb2746ef98f1 (diff) |
Setup compilation, command line handling
Diffstat (limited to 'bdep/types-parsers.hxx')
-rw-r--r-- | bdep/types-parsers.hxx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bdep/types-parsers.hxx b/bdep/types-parsers.hxx new file mode 100644 index 0000000..725ffa3 --- /dev/null +++ b/bdep/types-parsers.hxx @@ -0,0 +1,39 @@ +// file : bdep/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 BDEP_TYPES_PARSERS_HXX +#define BDEP_TYPES_PARSERS_HXX + +#include <bdep/types.hxx> +#include <bdep/options-types.hxx> + +namespace bdep +{ + 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 // BDEP_TYPES_PARSERS_HXX |