added the current character to the lexer struct
for cleaner structure
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user