updated examples to use _start
This commit is contained in:
@@ -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
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user