Lexer: Added pattern support

This commit is contained in:
Paul Beckingham 2015-12-22 15:26:57 -05:00
parent fbc47dc1e4
commit ee667cb68c
3 changed files with 33 additions and 1 deletions

View file

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