Skip to content

Commit

Permalink
Final commit. I'm so DONE
Browse files Browse the repository at this point in the history
  • Loading branch information
pgvalle committed Nov 27, 2023
1 parent 2b1a342 commit f81f130
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
5 changes: 5 additions & 0 deletions source/ParserRules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ void Parser::statement() {
case KW_while:
next_token();
expression();
if (tk.name == KW_do) {
next_token();
} else {
panic("<do>", { First::block, Follow::block });
}
do_statement();
break;
case KW_if:
Expand Down
Binary file added tests/test1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions tests/test1.txt

This file was deleted.

Binary file added tests/test2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/test3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f81f130

Please sign in to comment.