diff options
Diffstat (limited to 'odb/cxx-token.hxx')
-rw-r--r-- | odb/cxx-token.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/cxx-token.hxx b/odb/cxx-token.hxx new file mode 100644 index 0000000..efd0e85 --- /dev/null +++ b/odb/cxx-token.hxx @@ -0,0 +1,20 @@ +// file : odb/cxx-token.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_CXX_TOKEN_HXX +#define ODB_CXX_TOKEN_HXX + +#include <string> +#include <vector> + +struct cxx_token +{ + unsigned int type; // Untyped cpp_ttype. + std::string literal; // Only used for name, string, number, etc. +}; + +typedef std::vector<cxx_token> cxx_tokens; + +#endif // ODB_CXX_TOKEN_HXX |