mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Added pattern support
This commit is contained in:
parent
fbc47dc1e4
commit
ee667cb68c
3 changed files with 33 additions and 1 deletions
|
@ -37,6 +37,7 @@ class Lexer
|
|||
public:
|
||||
enum class Type { number, hex,
|
||||
string,
|
||||
pattern,
|
||||
word };
|
||||
|
||||
Lexer (const std::string&);
|
||||
|
@ -65,6 +66,7 @@ public:
|
|||
bool isNumber (std::string&, Lexer::Type&);
|
||||
bool isInteger (std::string&, Lexer::Type&);
|
||||
bool isHexNumber (std::string&, Lexer::Type&);
|
||||
bool isPattern (std::string&, Lexer::Type&);
|
||||
bool isWord (std::string&, Lexer::Type&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue