mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-06 06:58:45 +00:00
fixes
This commit is contained in:
parent
b723fd6a65
commit
3abac1b643
6 changed files with 27 additions and 18 deletions
|
|
@ -123,13 +123,15 @@ typeclass Enum =
|
|||
//
|
||||
|
||||
decl ( -- ) : Int -> Int -> Int_0
|
||||
def ( -- ) : begin end = {
|
||||
var current = begin
|
||||
return (while current < end do {
|
||||
; current += 1
|
||||
return current - 1
|
||||
})
|
||||
}
|
||||
// def ( -- ) : begin end = {
|
||||
// var current = begin
|
||||
// return (while current < end do {
|
||||
// ; current += 1
|
||||
// return current - 1
|
||||
// })
|
||||
// }
|
||||
|
||||
decl print : String -> Unit
|
||||
|
||||
decl func : String -> Int
|
||||
def func : s = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue