Lexer: Aded URL support

This commit is contained in:
Paul Beckingham 2015-12-24 00:18:23 -05:00
parent 78653a16cf
commit 703ec44ad0
3 changed files with 48 additions and 1 deletions

View file

@ -37,6 +37,7 @@ class Lexer
public:
enum class Type { number, hex,
string,
url,
pattern,
word };
@ -66,6 +67,7 @@ public:
bool isNumber (std::string&, Lexer::Type&);
bool isInteger (std::string&, Lexer::Type&);
bool isHexNumber (std::string&, Lexer::Type&);
bool isURL (std::string&, Lexer::Type&);
bool isPattern (std::string&, Lexer::Type&);
bool isWord (std::string&, Lexer::Type&);