summaryrefslogtreecommitdiff
path: root/cli/lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-08-22 10:20:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-08-22 10:20:34 +0200
commit94f0866683bdf063b30323bac227e11a23110fa2 (patch)
treec484de46d07f1d0b8fdffb6dd7573f7047e1b2cb /cli/lexer.hxx
parentc3f7f0c0556270ced988a7adddec885270bc1ea7 (diff)
Add call and template expressions
Also add support for querying the lexer failure state.
Diffstat (limited to 'cli/lexer.hxx')
-rw-r--r--cli/lexer.hxx12
1 files changed, 11 insertions, 1 deletions
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"