diff options
Diffstat (limited to 'odb/cxx-token.hxx')
-rw-r--r-- | odb/cxx-token.hxx | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/odb/cxx-token.hxx b/odb/cxx-token.hxx deleted file mode 100644 index 784564d..0000000 --- a/odb/cxx-token.hxx +++ /dev/null @@ -1,31 +0,0 @@ -// file : odb/cxx-token.hxx -// copyright : Copyright (c) 2009-2019 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> - -#include <odb/gcc-fwd.hxx> - -struct cxx_token -{ - cxx_token (location_t l, - unsigned int t, - std::string const& lt = std::string (), - tree n = 0) - : loc (l), type (t), literal (lt), node (n) {} - - location_t loc; // Location of this token. - unsigned int type; // Untyped cpp_ttype. - std::string literal; // Only used for name, keyword, string, amd number. - tree node; // Tree node for the number. The number can be - // represented as either literal, tree node, or - // both, depending on which lexer was used. -}; - -typedef std::vector<cxx_token> cxx_tokens; - -#endif // ODB_CXX_TOKEN_HXX |