Lexer: Added hex number support

This commit is contained in:
Paul Beckingham 2015-12-20 21:19:03 -05:00
parent b9e5d94178
commit 53bb3952b8
3 changed files with 42 additions and 5 deletions

View file

@ -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: