Skip to content

Commit

Permalink
feat(while): Added while statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
natangscalvence committed Jan 15, 2025
1 parent 2734886 commit 8cc4d28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/lexer/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ TokenType match_keyword(const char *lexeme) {
if (strcmp(lexeme, "if") == 0) return TOKEN_IF;
if (strcmp(lexeme, "elif") == 0) return TOKEN_ELIF;
if (strcmp(lexeme, "else") == 0) return TOKEN_ELSE;
if (strcmp(lexeme, "while") == 0) return TOKEN_WHILE;
if (strcmp(lexeme, "switch") == 0) return TOKEN_SWITCH;
if (strcmp(lexeme, "case") == 0) return TOKEN_CASE;
if (strcmp(lexeme, "default") == 0) return TOKEN_DEFAULT;
Expand Down

0 comments on commit 8cc4d28

Please sign in to comment.