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 | |
| 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')
| -rw-r--r-- | src/CommandLine/osx/ld64.json (renamed from src/CommandLine/osx/ld64-osx.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/osx/mld64.json (renamed from src/CommandLine/osx/mld64-osx.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/posix/ld64.json (renamed from src/CommandLine/posix/ld64-posix.json) | 0 | ||||
| -rw-r--r-- | src/CommandLine/posix/mld64.json (renamed from src/CommandLine/posix/mld64-posix.json) | 0 | ||||
| -rw-r--r-- | src/CompilerKit/src/Frontends/NectarCompiler+Chk.cpp | 7 |
5 files changed, 7 insertions, 0 deletions
diff --git a/src/CommandLine/osx/ld64-osx.json b/src/CommandLine/osx/ld64.json index ddd233b..ddd233b 100644 --- a/src/CommandLine/osx/ld64-osx.json +++ b/src/CommandLine/osx/ld64.json diff --git a/src/CommandLine/osx/mld64-osx.json b/src/CommandLine/osx/mld64.json index 57f08f0..57f08f0 100644 --- a/src/CommandLine/osx/mld64-osx.json +++ b/src/CommandLine/osx/mld64.json diff --git a/src/CommandLine/posix/ld64-posix.json b/src/CommandLine/posix/ld64.json index 0847b41..0847b41 100644 --- a/src/CommandLine/posix/ld64-posix.json +++ b/src/CommandLine/posix/ld64.json diff --git a/src/CommandLine/posix/mld64-posix.json b/src/CommandLine/posix/mld64.json index e408cec..e408cec 100644 --- a/src/CommandLine/posix/mld64-posix.json +++ b/src/CommandLine/posix/mld64.json 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"); |
