2025-01-25 Latest Changes

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2025-01-25 16:27:50 +01:00
parent f0ffbafee1
commit e191173e7b
18 changed files with 182 additions and 759 deletions
+9
View File
@@ -35,6 +35,9 @@ namespace blitz {
} type;
std::string to_string();
bool operator==(blitz::token::variant rhs);
bool operator==(std::string const& rhs);
};
class lexer {
@@ -60,5 +63,11 @@ namespace blitz {
* This will replace the current token.
*/
blitz::token next();
/** Peek at the next token in the given stream.
*
* The current token will remain in-tact.
*/
blitz::token peek();
};
} // namespace blitz