mirror of
https://github.com/lisk77/lambda.git
synced 2025-10-24 18:28:49 +00:00
feat: initial commit
This commit is contained in:
commit
0dd91da74f
17 changed files with 683 additions and 0 deletions
18
include/lexer.hpp
Normal file
18
include/lexer.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue