Lexer: Added ::isSet to recognize numerical sets

- A numerical set is a list of numbers: 1,2,3
  Or a range of numbers:                5-10
  Or a combination of both:             1,2,3,5-10
This commit is contained in:
Paul Beckingham
2015-06-19 18:28:58 -07:00
parent 275548d6ed
commit f4a7c50f1a
2 changed files with 64 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ public:
enum class Type { uuid, number, hex,
string,
list, url, pair, separator,
list, url, pair, set, separator,
tag,
path,
substitution, pattern,
@@ -93,6 +93,7 @@ public:
bool isList (std::string&, Lexer::Type&);
bool isURL (std::string&, Lexer::Type&);
bool isPair (std::string&, Lexer::Type&);
bool isSet (std::string&, Lexer::Type&);
bool isTag (std::string&, Lexer::Type&);
bool isPath (std::string&, Lexer::Type&);
bool isSubstitution (std::string&, Lexer::Type&);