diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 10:20:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-08-22 10:20:34 +0200 |
commit | 94f0866683bdf063b30323bac227e11a23110fa2 (patch) | |
tree | c484de46d07f1d0b8fdffb6dd7573f7047e1b2cb /cli/lexer.hxx | |
parent | c3f7f0c0556270ced988a7adddec885270bc1ea7 (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.hxx | 12 |
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" |