diff --git a/source/tlang/compiler/parser.d b/source/tlang/compiler/parser.d index 7e56768..bb0b6fc 100644 --- a/source/tlang/compiler/parser.d +++ b/source/tlang/compiler/parser.d @@ -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) {