diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 04:10:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 04:10:54 +0100 |
| commit | 68dcaf3c8909ae09e2197a069f0fb84cfd4a5444 (patch) | |
| tree | b79457c4739e3dc6251ea3076fb8a9bddaa2d4d5 /include | |
| parent | 0d7337aef0eb32f49b25ea7ce7b12af727121381 (diff) | |
feat: Nectar specs V1, introduce LibGL.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/CompilerKit/AST.h | 1 | ||||
| -rw-r--r-- | include/LibGL/iostream.nhh (renamed from include/LibNectar/iostream.nhh) | 0 | ||||
| -rw-r--r-- | include/LibGL/iterator.nhh (renamed from include/LibNectar/iterator.nhh) | 17 |
3 files changed, 11 insertions, 7 deletions
diff --git a/include/CompilerKit/AST.h b/include/CompilerKit/AST.h index 6136721..b991bd0 100644 --- a/include/CompilerKit/AST.h +++ b/include/CompilerKit/AST.h @@ -29,7 +29,6 @@ enum struct KeywordKind { kKeywordKindFunctionStart, kKeywordKindFunctionEnd, kKeywordKindVariable, - kKeywordKindType, kKeywordKindExpressionBegin, kKeywordKindExpressionEnd, kKeywordKindArgSeparator, diff --git a/include/LibNectar/iostream.nhh b/include/LibGL/iostream.nhh index 9e14174..9e14174 100644 --- a/include/LibNectar/iostream.nhh +++ b/include/LibGL/iostream.nhh diff --git a/include/LibNectar/iterator.nhh b/include/LibGL/iterator.nhh index 5b760ed..a038421 100644 --- a/include/LibNectar/iterator.nhh +++ b/include/LibGL/iterator.nhh @@ -8,19 +8,24 @@ struct iterator_traits { - let begin(let collection) + let begin(let it) { - return collection._begin; + let end := it._begin; + return end; } - let end(let collection) + let end(let it) { - return collection._begin + collection._size; + let end := it._begin; + end += it._end; + + return end; } - let size(let collection) + let size(let it) { - return collection._size; + let sz := it._size; + return sz; } }; |
