From 302017e051eba320a67c9fa4a3bc528462df514a Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 3 Mar 2021 20:16:56 +0200 Subject: [PATCH] Added comment --- source/tlang/compiler/parser.d | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) {