From a801f13eec5abf1c0b7b7e2431383b4898f5701c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 16 Jan 2026 19:06:36 +0100 Subject: chore: example.ncpp: wip: nested stubs. Signed-off-by: Amlal El Mahrouss --- doc/specs/GENERAL_SPECIFICATION.md | 8 ++++---- doc/specs/NECTAR_LANG.md | 4 +++- example/example_02_nectar/example.ncpp | 4 ++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/specs/GENERAL_SPECIFICATION.md b/doc/specs/GENERAL_SPECIFICATION.md index 19f787f..045f2ff 100644 --- a/doc/specs/GENERAL_SPECIFICATION.md +++ b/doc/specs/GENERAL_SPECIFICATION.md @@ -25,13 +25,13 @@ =================================== -# 2: LibC++ +# 2: LibGL =================================== -- Shall support C++ runtime and ABI for NeKernel. -- Shall support a basic subset of the C++ library. -- Shall be written in C++ +- Shall support Nectar runtime and ABI of NeKernel. +- Shall support a basic subset of the Nectar library. +- Shall be written in Nectar =================================== diff --git a/doc/specs/NECTAR_LANG.md b/doc/specs/NECTAR_LANG.md index 736f455..9346f98 100644 --- a/doc/specs/NECTAR_LANG.md +++ b/doc/specs/NECTAR_LANG.md @@ -25,10 +25,12 @@ - `struct` Data implementation of `impl` -- useful to store fields and such. - `let` Pointer/Reference variable declaration. - `const` const `let` declaration. +- Functions. +- Nested Stubs. =================================== -# 2: Concepts +# 2: The Generics Library =================================== diff --git a/example/example_02_nectar/example.ncpp b/example/example_02_nectar/example.ncpp index 214bc90..862f7c2 100644 --- a/example/example_02_nectar/example.ncpp +++ b/example/example_02_nectar/example.ncpp @@ -2,10 +2,10 @@ const main() { let socket := socket(); - main_process_socket() { + const main_process_socket() { let readen := read(socket, 0, 0); return; } - return main_process_socket(); + return 0; } -- cgit v1.2.3