implemented lexer for a more complex subset of the
monkey language
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user