Rename return to end_func and add proper return statment

This commit is contained in:
Stone_Red
2026-08-06 20:36:32 +02:00
parent ade4ab5ea6
commit e7bf9591ba
8 changed files with 167 additions and 18 deletions
+2 -3
View File
@@ -43,12 +43,11 @@ YesNt is intentionally minimal and is well suited for:
func greet:
var name = %in
print_line Hello, ${name}!
return
end_func
func add:
var result = %in + %in calc
push_out ${result}
return
return ${result}
call greet with Alice
call greet with Bob