From 8387a0b45df48cd99bcd62f81d175cde509dc091 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Aug 2009 11:17:17 +0200 Subject: Add support for C and C++-style comments --- cli/lexer.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cli/lexer.hxx') 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" -- cgit v1.1