From ff7ee3e3e070a2abee70fd93062065060118cf9e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 12 Jan 2026 12:10:32 +0100 Subject: chore: wip: Introduce `libNectarStd`'s Generics Library. Signed-off-by: Amlal El Mahrouss --- include/LibNectarRuntime/.keep | 0 include/LibNectarStd/iostream.ncpp | 19 +++++++++++++++++++ include/LibNectarStd/iterator.ncpp | 13 +++++++++++++ 3 files changed, 32 insertions(+) delete mode 100644 include/LibNectarRuntime/.keep create mode 100644 include/LibNectarStd/iostream.ncpp create mode 100644 include/LibNectarStd/iterator.ncpp (limited to 'include') diff --git a/include/LibNectarRuntime/.keep b/include/LibNectarRuntime/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/include/LibNectarStd/iostream.ncpp b/include/LibNectarStd/iostream.ncpp new file mode 100644 index 0000000..ecd1132 --- /dev/null +++ b/include/LibNectarStd/iostream.ncpp @@ -0,0 +1,19 @@ +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (See accompanying +// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) +// Official repository: https://github.com/nekernel-org/nectar + +import printf, scanf; + +struct ostream +{ + let print(let data) + { + return nil; + } + + let scan(let fmt) + { + return nil; + } +}; \ No newline at end of file diff --git a/include/LibNectarStd/iterator.ncpp b/include/LibNectarStd/iterator.ncpp new file mode 100644 index 0000000..fe9015d --- /dev/null +++ b/include/LibNectarStd/iterator.ncpp @@ -0,0 +1,13 @@ + +struct iterator +{ + let begin(let collection) + { + return nil; + } + + let end(let collection) + { + return nil; + } +}; \ No newline at end of file -- cgit v1.2.3