mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Lexer: Added hex number support
This commit is contained in:
parent
b9e5d94178
commit
53bb3952b8
3 changed files with 42 additions and 5 deletions
|
@ -35,7 +35,8 @@
|
|||
class Lexer
|
||||
{
|
||||
public:
|
||||
enum class Type { string,
|
||||
enum class Type { hex,
|
||||
string,
|
||||
word };
|
||||
|
||||
Lexer (const std::string&);
|
||||
|
@ -60,6 +61,7 @@ public:
|
|||
// Stream Classifiers.
|
||||
bool isEOS () const;
|
||||
bool isString (std::string&, Lexer::Type&, const std::string&);
|
||||
bool isHexNumber (std::string&, Lexer::Type&);
|
||||
bool isWord (std::string&, Lexer::Type&);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue