Files
interpreter-cpp/src/lexer/lexer.hpp
2025-07-08 10:17:38 +02:00

20 lines
325 B
C++

#pragma once
#include "token/token.hpp"
#include <istream>
namespace lexer {
struct lexer {
std::istream& input;
char c = 0;
token::token next_token();
private:
bool is_letter(char);
std::string read_string();
std::string read_int();
};
} // namespace lexer