Files
interpreter-cpp/src/lexer/lexer.hpp
Karma Riuk 2174781b77 using smart pointers instead of normal ones for
easier setup of tests (to call setup() multiple
times without leaks)
2025-07-11 11:16:16 +02:00

21 lines
355 B
C++

#pragma once
#include "token/token.hpp"
#include <istream>
namespace lexer {
struct lexer {
lexer(std::istream&);
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