Loop parsing

This commit is contained in:
Rafał Grodziński
2025-06-24 18:40:50 +09:00
parent 981854835e
commit 0c31072115
10 changed files with 131 additions and 13 deletions

View File

@@ -194,6 +194,10 @@ shared_ptr<Token> Lexer::nextToken() {
token = match(TokenKind::RETURN, "ret", true);
if (token != nullptr)
return token;
token = match(TokenKind::REPEAT, "rep", true);
if (token != nullptr)
return token;
// literal
token = match(TokenKind::BOOL, "true", true);