utility functions for implementing noja functions in c; built-ins for socket management; http server draft in noja

This commit is contained in:
Francesco Cozzuto
2023-01-15 00:51:36 +01:00
parent 2c7e0ae2ba
commit 74a1648af8
27 changed files with 1705 additions and 299 deletions
+17
View File
@@ -0,0 +1,17 @@
stack, error = import("stack.noja");
print(error, "\n");
Stack = stack.Stack;
makeStack = stack.makeStack;
StackIterator = stack.StackIterator;
makeStackIterator = stack.makeStackIterator;
s1 = makeStack(int);
s1->push(1);
s1->push(2);
s1->push(3);
print(toString(s1), "\n");
iter = makeIterator(s1);
print(toString(iter), "\n");
while (val, key = iter->next()) != none:
print(key, " => ", val, "\n");