implemented very simple repl

This commit is contained in:
Karma Riuk
2025-07-01 18:43:25 +02:00
parent aee7a741b1
commit 69bee723a2
4 changed files with 42 additions and 3 deletions

View File

@@ -13,4 +13,8 @@ namespace token {
token(::token::type t, char c): type(t), literal(1, c) {}
};
inline std::ostream& operator<<(std::ostream& os, token tok) {
return os << tok.type << '(' << tok.literal << ')';
}
} // namespace token