summaryrefslogtreecommitdiff
path: root/cli/lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 11:17:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 11:17:17 +0200
commit8387a0b45df48cd99bcd62f81d175cde509dc091 (patch)
tree06988610fffc6c1b07336271a0ed57024554ff33 /cli/lexer.hxx
parent2a24763c6fd6a75510ded0d030620aad1eba2b02 (diff)
Add support for C and C++-style comments
Diffstat (limited to 'cli/lexer.hxx')
-rw-r--r--cli/lexer.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/lexer.hxx b/cli/lexer.hxx
index 50990c3..c69021f 100644
--- a/cli/lexer.hxx
+++ b/cli/lexer.hxx
@@ -53,10 +53,13 @@ protected:
};
Char
- get ();
+ peek ();
Char
- peek ();
+ get ();
+
+ void
+ unget (Char);
protected:
class InvalidInput {};
@@ -130,6 +133,9 @@ private:
bool eos_;
bool include_;
bool valid_;
+
+ Char buf_;
+ bool unget_;
};
#include "lexer.ixx"