Added a skeleton for the lexer

This commit is contained in:
2025-09-30 16:50:33 +03:00
committed by Emin Arslan
parent 43e05597ac
commit 19b0eb48bb
7 changed files with 104 additions and 3 deletions

16
src/lex.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <lex.hpp>
#include <string>
Lexer::Lexer(std::string s) : ss(s) {}
Lexer::Lexer() : ss("") {}
void Lexer::feed(std::string s) {
ss << s;
}
Token Lexer::next() {
return {TokenType::CloseParen};
}