implemented lexer for a more complex subset of the

monkey language
This commit is contained in:
Karma Riuk
2025-06-30 00:12:28 +02:00
parent 69217fdf90
commit dec93f8272
4 changed files with 60 additions and 5 deletions

View File

@@ -6,5 +6,11 @@ namespace lexer {
struct lexer {
std::istream& input;
token::token next_token();
private:
bool is_letter(char);
std::string read_string(char);
std::string read_int(char);
};
} // namespace lexer