added the current character to the lexer struct

for cleaner structure
This commit is contained in:
Karma Riuk
2025-07-01 18:59:43 +02:00
parent 69bee723a2
commit e773cb649f
2 changed files with 9 additions and 9 deletions

View File

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