mirror of
https://github.com/lisk77/lambda.git
synced 2025-10-24 18:28:49 +00:00
18 lines
264 B
C++
18 lines
264 B
C++
#ifndef LEXER_HPP
|
|
#define LEXER_HPP
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include "token.hpp"
|
|
|
|
class Lexer {
|
|
std::string src;
|
|
bool error_flag;
|
|
size_t position;
|
|
|
|
public:
|
|
Lexer(std::string);
|
|
std::vector<Token> tokenize();
|
|
};
|
|
|
|
#endif // LEXER_HPP
|