diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-01 16:46:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-01 16:46:03 +0200 |
commit | a133e7b03bd67c992cfb240bd300967ffab31ba2 (patch) | |
tree | 02c54f4c9b7f48aeb5230e230a4bb00bb1609c2c /bbot/types-parsers | |
parent | 2ae123ce8e8a874ada7e8c776abfc0742d862277 (diff) |
Setup build infra
Diffstat (limited to 'bbot/types-parsers')
-rw-r--r-- | bbot/types-parsers | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/bbot/types-parsers b/bbot/types-parsers new file mode 100644 index 0000000..1cb78f7 --- /dev/null +++ b/bbot/types-parsers @@ -0,0 +1,38 @@ +// file : bbot/types-parsers -*- C++ -*- +// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// CLI parsers, included into the generated source files. +// + +#ifndef BBOT_TYPES_PARSERS +#define BBOT_TYPES_PARSERS + +#include <bbot/types> + +namespace bbot +{ + 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 // BBOT_TYPES_PARSERS |