summaryrefslogtreecommitdiffhomepage
path: root/example/example_02_nectar/example.nc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-29 22:27:52 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-29 22:41:01 +0100
commit0be550520fdd9da1cc996f6d71ab2790a1b2fcb8 (patch)
tree4c6435d61ea12a548257673f74ef77694aab3452 /example/example_02_nectar/example.nc
parent690fa2807e10f10edd20ce971b900457d7504ff3 (diff)
feat: if statement and custom comparaison syntax for nectar.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/example_02_nectar/example.nc')
-rw-r--r--example/example_02_nectar/example.nc5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/example_02_nectar/example.nc b/example/example_02_nectar/example.nc
index 7a08953..c41223b 100644
--- a/example/example_02_nectar/example.nc
+++ b/example/example_02_nectar/example.nc
@@ -1,8 +1,9 @@
extern sleep;
+extern putchar;
const main() {
- _sleep(0x1);
- let _ := _putchar(0x0, '!');
+ sleep(0x1);
+ putchar(0x0, '!');
let foo := 42;