Lexer: Implemented ::isOneOf using a std::map as input

This commit is contained in:
Paul Beckingham 2015-07-26 12:09:40 -04:00
parent 58edbb9630
commit 52d2bbd11a
2 changed files with 12 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#define INCLUDED_LEXER
#include <string>
#include <map>
#include <vector>
#include <cstddef>
@ -107,6 +108,7 @@ public:
bool isWord (std::string&, Lexer::Type&);
bool isLiteral (const std::string&, bool);
bool isOneOf (const std::vector <std::string>&, bool);
bool isOneOf (const std::map <std::string, std::string>&, bool);
private:
std::string _text;