This commit is contained in:
Giulio Agostini
2025-11-12 20:45:35 +01:00
parent 07cedc27bf
commit ee279425f2
9 changed files with 240 additions and 45 deletions
+28
View File
@@ -0,0 +1,28 @@
// var Person :: struct {
// name: String,
// age: Int,
// address: String,
// }
//func_name :: fn(param: Number, param2: String) {param is Int} do
func_name :: fn(param: Int, param2: String) do
print param;
cavallo := 5;
print cavallo;
while cavallo < 10 do
cavallo = cavallo + 1;
print cavallo;
end
if True then do
print "this shoul be stop";
return False;
end
print "this shoud be un other stop";
return 42;
for i := 11; i <= 21; i = i + 1; do
print i;
end
return False or True;
end
func_name(1,2)