Added comment

expression_parsing.sync-conflict-20210316-090018-O3W7KWN
Tristan B. V. Kildaire 2021-03-03 20:16:56 +02:00
parent 1c335db683
commit 302017e051
1 changed files with 7 additions and 2 deletions

View File

@ -88,6 +88,13 @@ public final class Parser
/* TODO: Implement body parsing */
nextToken();
/**
* If we were able to get a closing token, `}`, then
* this will be set to true, else it will be false by
* default which implies we ran out of tokens before
* we could close te body which is an error we do throw
*/
bool closedBeforeExit;
@ -135,8 +142,6 @@ public final class Parser
}
}
gprintln("habba");
/* TODO: We can sometimes run out of tokens before getting our closing brace, we should fix that here */
if(!closedBeforeExit)
{