add more examples and libs

This commit is contained in:
Daniella / Tove 2022-03-06 19:05:42 +01:00
parent b44c232d9a
commit a094bcff5d
3 changed files with 34 additions and 0 deletions

9
echo.isbpl Normal file
View file

@ -0,0 +1,9 @@
"#file.isbpl" include
func main {
def args =args
while { 1 } {
"/dev/stdin" _file 0 1 read 0 aget _char putchar
}
0
}

14
slowsocketer.isbpl Normal file
View file

@ -0,0 +1,14 @@
"#stream.isbpl" include
"#file.isbpl" include
"#time.isbpl" include
func main {
def args =args
def dly args 2 aget stol =dly
def id args 0 aget args 1 aget stol _int STREAM_CREATE_SOCKET stream =id
while { 1 } {
"/dev/stdin" _file 0 1 read 0 aget _char id STREAM_WRITE stream
dly delay
}
0
}

11
socketer.isbpl Normal file
View file

@ -0,0 +1,11 @@
"#stream.isbpl" include
"#file.isbpl" include
func main {
def args =args
def id args 0 aget args 1 aget stol _int STREAM_CREATE_SOCKET stream =id
while { 1 } {
"/dev/stdin" _file 0 1 read 0 aget _char id STREAM_WRITE stream
}
0
}