summaryrefslogtreecommitdiff
path: root/odb/cxx-token.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-16 16:03:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-16 16:03:25 +0200
commitb79567fbc72df23f870049652d5f254aba948bea (patch)
tree186168269cf249ce97be89fd02aab4c75e83574c /odb/cxx-token.hxx
parentd780414989ef7e101cdaf269d4b01003d0721e6a (diff)
Support for views; integrated part
Diffstat (limited to 'odb/cxx-token.hxx')
-rw-r--r--odb/cxx-token.hxx20
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