net.connect, net.listen

This commit is contained in:
2025-07-26 13:21:37 +02:00
parent 65bdac2fe3
commit 9ae0230f5f
10 changed files with 97 additions and 150 deletions

View File

@@ -26,7 +26,7 @@ func main[] : I64
if !str.nth(memory, p)
i = i + 1
let opened: I64 = 0
while i < src_len && !(str.nth(src, i) == ']' && !opened)
while i < src_len & !(str.nth(src, i) == ']' & !opened)
if str.nth(src, i) == '['
opened = opened + 1
else if str.nth(src, i) == ']'
@@ -36,7 +36,7 @@ func main[] : I64
if str.nth(memory, p)
i = i - 1
let closed: I64 = 0
while i >= 0 && !(str.nth(src, i) == '[' && !closed)
while i >= 0 & !(str.nth(src, i) == '[' & !closed)
if str.nth(src, i) == ']'
closed = closed + 1
else if str.nth(src, i) == '['