From 8c7c4d038c61fc627c82f4e488ed184e2ef9fa6a Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Mon, 31 May 2021 17:51:16 +0200 Subject: [PATCH] WIP: Actual struct support Added TODO --- source/tlang/compiler/parsing/core.d | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/tlang/compiler/parsing/core.d b/source/tlang/compiler/parsing/core.d index 1dbf9c0..1cbfd57 100644 --- a/source/tlang/compiler/parsing/core.d +++ b/source/tlang/compiler/parsing/core.d @@ -322,6 +322,16 @@ public final class Parser /* Get current token */ SymbolType symbolType = getSymbolType(getCurrentToken()); + /** TODO: + * We only want to allow function definitions and variable + * declarations here (WIP: for now without assignments) + * + * parseAccessor() supports those BUT it will also allow classes + * and further structs - this we do not want and hence we should + * filter out those (raise an error) on checking the type of + * Entity returned by `parseAccessor()` + */ + /* If closing brace then exit */ if(symbolType == SymbolType.CCURLY) {