summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-23 10:19:41 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-23 10:19:41 +0100
commitaed5494e761e1d92330b40fef8ea5e053ae90854 (patch)
treeea00a76deb6c23a6b74fbe641c50bb6ade1b4498
parent53294fa97e1f175f4e8700ffc00ff49909ef31f1 (diff)
[FEAT] Add install script for Nectar alongside many needed additions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--README.md8
-rwxr-xr-xinstall.sh23
-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.cpp7
7 files changed, 37 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8d7d653..ef5a6c4 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<!-- Read Me of Nectar -->
-# 🍯 The Nectar Language
+# 🍯 The Nectar Systems Language.
<a href="LICENSE"><img src="https://img.shields.io/badge/LICENSE-Apache--2.0-blue.svg" alt="License"></a>
@@ -14,6 +14,12 @@ A systems programming language for the 21st century.
## Getting Started:
+### Quick Install:
+
+```sh
+curl -fsSL http://install.nectar.nekernel.org | sh
+```
+
### Structure:
- `src/CompilerKit` – Compiler Kit written in C++.
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..57ac433
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+echo "INSTALLING NECTAR..."
+
+git clone -j8 https://github.com/ne-foss-org/nectar
+cd nectar
+cd src/CompilerKit
+sudo nebuild ck-posix.json
+cd ..
+cd DebuggerKit
+sudo nebuild dk-nk-posix.json
+cd ..
+cd CommandLine
+nebuild posix/cppdrv.json posix/ld64-posix.json posix/pef-amd64-asm.json posix/pef-amd64-drv.json posix/ptx-drv.json
+sudo cp cppdrv /usr/local/bin/cppdrv-nectar
+sudo cp ld64 /usr/local/bin/ld64-nectar
+sudo cp pef-amd64-asm /usr/local/bin/
+sudo cp pef-amd64-drv /usr/local/bin/
+sudo cp ptx-drv /usr/local/bin/
+
+echo "== WELCOME TO NECTAR =="
+echo "== HELP =="
+echo "== HELP NEEDED: NECTAR NEEDS MORE CONTRIBUTORS! JOIN US ON GITHUB! =="
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");