summaryrefslogtreecommitdiff
path: root/cli/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-11 14:17:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-11 14:17:04 +0200
commit5d6f8aad8aaa3cdc3c52848c8adbc271dbe8e5e2 (patch)
tree804dd90f38ca601428ed9154d68ee7d16bf7db6a /cli/context.hxx
parent47c792f60af45e91ede19333faf111bb14d0cd2b (diff)
Use a set instead of pre-sorted array for keywords
The pre-sorted array approach depends on the character encoding.
Diffstat (limited to 'cli/context.hxx')
-rw-r--r--cli/context.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/context.hxx b/cli/context.hxx
index 37864af..1f2facb 100644
--- a/cli/context.hxx
+++ b/cli/context.hxx
@@ -6,6 +6,7 @@
#ifndef CLI_CONTEXT_HXX
#define CLI_CONTEXT_HXX
+#include <set>
#include <map>
#include <string>
#include <ostream>
@@ -42,10 +43,14 @@ public:
typedef std::map<string, string> reserved_name_map_type;
reserved_name_map_type const& reserved_name_map;
+ typedef std::set<string> keyword_set_type;
+ keyword_set_type const& keyword_set;
+
private:
struct data
{
string inl_;
+ keyword_set_type keyword_set_;
};
public: