From 8c229dd19a10dc144a4e903fff0e036e4f65d782 Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Fri, 21 Nov 2025 20:18:05 -0600 Subject: [PATCH] Add exception for classes with invalid syntax --- src/compiler/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compiler/parser.cpp b/src/compiler/parser.cpp index c7509d1..ec60f66 100644 --- a/src/compiler/parser.cpp +++ b/src/compiler/parser.cpp @@ -1440,6 +1440,9 @@ namespace Tesses::CrossLang } } + else { + throw SyntaxException(tokens[i].lineInfo, "Need public, private, protected or static"); + } } } EnsureSymbol("}");