24 lines
461 B
Standard ML
Executable file
24 lines
461 B
Standard ML
Executable file
#!/usr/bin/env fun
|
|
|
|
/*
|
|
* This file is part of the Fun programming language.
|
|
* https://hanez.org/project/fun/
|
|
*
|
|
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
|
* Licensed under the terms of the ISC license.
|
|
* https://opensource.org/license/isc-license-txt
|
|
*/
|
|
|
|
print("Yay, the playground for having fun... ;)")
|
|
|
|
number n = 10
|
|
print(n)
|
|
|
|
string s = "Hello,\nworld!"
|
|
print(s)
|
|
|
|
fun foo()
|
|
print("Have fun!")
|
|
print("Running foo()... forever.")
|
|
|
|
foo()
|