diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-13 15:11:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-13 15:11:34 +0100 |
| commit | 927d2cf3e85188514df885efb7782e5570ff36cf (patch) | |
| tree | 248b956a9fc08c67c0cfeb01f3a0f95c0fd4825f /example | |
| parent | fe55f67bf7a5aeba365d7af1d681cef1d9ed7a3c (diff) | |
| parent | a4bb44e2a004d04cbee3ceb2d90aa7461dabecf4 (diff) | |
Merge pull request #73 from ne-foss-org/compiler_kit-osx-tweaks-fixes
[FEAT] Update and add Nectar compliant snippet with CL paradigm in mind.
Diffstat (limited to 'example')
| -rw-r--r-- | example/example_02_nectar/example.nc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/example/example_02_nectar/example.nc b/example/example_02_nectar/example.nc index 46cbd25..fdaadcd 100644 --- a/example/example_02_nectar/example.nc +++ b/example/example_02_nectar/example.nc @@ -1,10 +1,15 @@ -extern sleep; -extern putchar; +extern exit; -const main() { - sleep(1); - putchar(0, '!'); +trait foo { + let exit(); +}; + +let foo.exit() { + exit(0); +} - let foo := 42; - return foo; +const main() { + let self := 0; + foo.exit(); + return 0; } |
