diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-16 19:06:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-16 19:08:45 +0100 |
| commit | a801f13eec5abf1c0b7b7e2431383b4898f5701c (patch) | |
| tree | 8143cb047407db0df979f0c6cb3908479c11c3d0 | |
| parent | cc0b46b2f8d1fa0fa3c888d08efb3e54f8ecfc6e (diff) | |
chore: example.ncpp: wip: nested stubs.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
| -rw-r--r-- | doc/specs/GENERAL_SPECIFICATION.md | 8 | ||||
| -rw-r--r-- | doc/specs/NECTAR_LANG.md | 4 | ||||
| -rw-r--r-- | 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; } |
