build changes
Some checks failed
Publish Image / publish (push) Waiting to run
Test / build (push) Waiting to run
Build / build (push) Has been cancelled

This commit is contained in:
Chuck Smith
2024-03-28 15:11:47 -04:00
parent fd8311b280
commit 138df71cc8
22 changed files with 392 additions and 99 deletions

View File

@@ -1,11 +1,12 @@
#!./monkey-lang
#!/usr/bin/env monkey-lang
fd := socket("tcp4")
bind(fd, "0.0.0.0:8000")
listen(fd, 1)
nfd := accept(fd)
msg := read(nfd)
write(nfd, msg)
close(nfd)
close(fd)
while (true) {
nfd := accept(fd)
msg := read(nfd)
write(nfd, msg)
close(nfd)
}