Lexer: Added ::typeName and ::typeToString for testing

This commit is contained in:
Paul Beckingham 2015-12-20 16:02:11 -05:00
parent d4420f1b22
commit 95b2b25323
3 changed files with 76 additions and 1 deletions

View file

@ -40,8 +40,10 @@ public:
Lexer (const std::string&);
bool token (std::string&, Lexer::Type&);
static std::string typeToString (Lexer::Type);
// Static helpers.
static const std::string typeName (const Lexer::Type&);
static bool isWhitespace (int);
static bool isHexDigit (int);
static bool isSingleCharOperator (int);