Added a skeleton for the lexer
This commit is contained in:
16
src/lex.cpp
Normal file
16
src/lex.cpp
Normal 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};
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user