mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 06:58:45 +00:00
extended name removed, dereference added, unary operators removed, fixes
This commit is contained in:
parent
e62144feac
commit
79bd30c1ee
20 changed files with 101 additions and 274 deletions
|
|
@ -1,7 +1,12 @@
|
|||
decl print : String -> Unit
|
||||
decl ( -- ) : Int -> Int -> Int_0
|
||||
|
||||
decl func : String -> Int
|
||||
def func : s = {
|
||||
; print: s
|
||||
return 5
|
||||
}
|
||||
|
||||
exec main {
|
||||
for i in 0--10 do func: "abacaba"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue