updated examples to use _start

This commit is contained in:
Luxferre
2026-07-06 12:56:48 +03:00
parent c303bb70b0
commit 052d58b6f7
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env clyx #!/usr/bin/env clyx
:: _main [ _start [
for [ 1 101 range ] [ for [ 1 101 range ] [
1 # tracking flag 1 # tracking flag
swap # the index is on top swap # the index is on top
+1 -3
View File
@@ -1,4 +1,2 @@
#!/usr/bin/env clyx #!/usr/bin/env clyx
:: _main [ _start [ "Hello from Clyx!" puts cr ]
"Hello from Clyx!" puts cr
]
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env clyx #!/usr/bin/env clyx
:: _main [ _start [
"Listening on port 1337..." puts cr "Listening on port 1337..." puts cr
1337 nlstn # listen on port 1337 1337 nlstn # listen on port 1337
1 while [ # outer connection accept loop 1 while [ # outer connection accept loop