Added two more examples about classes and console stuff and some stub code. (0.37.46)
This commit is contained in:
parent
fd582f4d3a
commit
95a0582608
5 changed files with 69 additions and 2 deletions
|
|
@ -1,3 +1,12 @@
|
|||
/*
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Console utilities: prompt, ask, and yes/no helpers built on input().
|
||||
*/
|
||||
|
|
@ -38,3 +47,6 @@ class Console()
|
|||
else if (a == "n" || a == "no")
|
||||
return 0
|
||||
// otherwise loop again
|
||||
|
||||
fun progress(this, length)
|
||||
return length
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue