From 94f0866683bdf063b30323bac227e11a23110fa2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Aug 2009 10:20:34 +0200 Subject: Add call and template expressions Also add support for querying the lexer failure state. --- cli/lexer.hxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'cli/lexer.hxx') diff --git a/cli/lexer.hxx b/cli/lexer.hxx index 1caceb3..50990c3 100644 --- a/cli/lexer.hxx +++ b/cli/lexer.hxx @@ -22,6 +22,9 @@ public: Token next (); + bool + valid () const; + protected: class Char { @@ -56,7 +59,7 @@ protected: peek (); protected: - class invalid_input {}; + class InvalidInput {}; void skip_spaces (); @@ -82,6 +85,12 @@ protected: Token path_literal (Char); + Token + call_expression (Char); + + Token + template_expression (Char); + protected: bool is_alpha (char c) const; @@ -120,6 +129,7 @@ private: bool eos_; bool include_; + bool valid_; }; #include "lexer.ixx" -- cgit v1.1