summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
author😄 Amlal El Mahrouss <amlal@nekernel.org>2026-03-18 08:52:07 +0100
committerGitHub <noreply@github.com>2026-03-18 08:52:07 +0100
commitb8db61d6514afdec98bc8edbc22ceeed189b8309 (patch)
treefa3d378b50667f96c60a3f412547083fbc0786ac /example
parent6dc565002cbb1c84004d760d5f24e69646082b7a (diff)
parent3925c485946ae8e95fcd94329a23357cac4226b0 (diff)
Merge pull request #76 from ne-foss-org/nectar-frontend-check
[FEAT] Nectar syntax checker module.
Diffstat (limited to 'example')
-rw-r--r--example/example_02_nectar/example.nc10
-rw-r--r--example/example_05_nectar_gpu/example.nc2
2 files changed, 3 insertions, 9 deletions
diff --git a/example/example_02_nectar/example.nc b/example/example_02_nectar/example.nc
index b308bab..5e95c44 100644
--- a/example/example_02_nectar/example.nc
+++ b/example/example_02_nectar/example.nc
@@ -1,13 +1,7 @@
extern exit;
-const terminate()
-{
- let EXIT_TERMINATED = 0x100;
- exit(EXIT_TERMINATED);
-}
-
const main()
{
- terminate();
- return 0;
+ let foo := exit(0);
+ return 0;
}
diff --git a/example/example_05_nectar_gpu/example.nc b/example/example_05_nectar_gpu/example.nc
index f170b31..976b329 100644
--- a/example/example_05_nectar_gpu/example.nc
+++ b/example/example_05_nectar_gpu/example.nc
@@ -1,6 +1,6 @@
extern palloc_bytes;
const main() {
- const dummy := palloc_bytes(0, 1, 0);
+ let dummy := palloc_bytes(0, 1, 0);
return dummy;
}