24 lines
334 B
C++
24 lines
334 B
C++
#ifndef LEXER_HPP
|
|
#define LEXER_HPP
|
|
|
|
#include <map>
|
|
#include <regex>
|
|
|
|
#include "Token.hpp"
|
|
#include "TokenList.hpp"
|
|
|
|
namespace Blang{
|
|
class Lexer
|
|
{
|
|
public:
|
|
TokenList tokenize(std::string);
|
|
TokenList tokenizeFile(std::string);
|
|
|
|
private:
|
|
static std::map<Token::TokenKind, std::regex> _tokenRegexMap;
|
|
|
|
};
|
|
}
|
|
|
|
#endif
|