diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 11:17:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 11:17:17 +0200 |
commit | 8387a0b45df48cd99bcd62f81d175cde509dc091 (patch) | |
tree | 06988610fffc6c1b07336271a0ed57024554ff33 /cli/lexer.hxx | |
parent | 2a24763c6fd6a75510ded0d030620aad1eba2b02 (diff) |
Add support for C and C++-style comments
Diffstat (limited to 'cli/lexer.hxx')
-rw-r--r-- | cli/lexer.hxx | 10 |
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" |