mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Added ::typeName and ::typeToString for testing
This commit is contained in:
parent
d4420f1b22
commit
95b2b25323
3 changed files with 76 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue