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,4 +1,4 @@
#!./monkey-lang
#!/usr/bin/env monkey-lang
fill := fn(x, i) {
xs := []

View File

@@ -1,4 +1,4 @@
#!./monkey-lang
#!/usr/bin/env monkey-lang
fd := socket("tcp4")
bind(fd, "127.0.0.1:32535")

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)
}

View File

@@ -1,9 +1,6 @@
fib := fn(x) {
if (x == 0) {
return 0
}
if (x == 1) {
return 1
if (x < 2) {
return x
}
return fib(x-1) + fib(x-2)
}

View File

@@ -1,4 +1,4 @@
#!./monkey-lang
#!/usr/bin/env monkey-lang
test := fn(n) {
if (n % 15 == 0) {

View File

@@ -1,4 +1,4 @@
#!./monkey-lang
#!/usr/bin/env monkey-lang
prime := fn(n) {
# Corner cases