From aed5494e761e1d92330b40fef8ea5e053ae90854 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 23 Mar 2026 10:19:41 +0100 Subject: [FEAT] Add install script for Nectar alongside many needed additions. Signed-off-by: Amlal El Mahrouss --- src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/CompilerKit') diff --git a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp index 5c51309..f42ad0a 100644 --- a/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp +++ b/src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp @@ -48,6 +48,13 @@ CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input) { } } + if (input.find("(") != CompilerKit::STLString::npos && !input.ends_with(";")) { + if (input.find(":=") == CompilerKit::STLString::npos) { + Detail::print_error("A function call must always end with ';'", "check"); + return false; + } + } + if (input.find("const ") != CompilerKit::STLString::npos && !input.ends_with(";")) { if (input.find(":=") != CompilerKit::STLString::npos) { Detail::print_error("A declaration must always end with ';'", "check"); -- cgit v1.2.3