diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-23 10:19:41 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-23 10:19:41 +0100 |
| commit | aed5494e761e1d92330b40fef8ea5e053ae90854 (patch) | |
| tree | ea00a76deb6c23a6b74fbe641c50bb6ade1b4498 /src/CompilerKit | |
| parent | 53294fa97e1f175f4e8700ffc00ff49909ef31f1 (diff) | |
[FEAT] Add install script for Nectar alongside many needed additions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit')
| -rw-r--r-- | src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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"); |
