1
0
Fork 0
forked from fun/fun

All incomplete examples have been updated and some corrections have been made to the parser to make them work. (0.37.17)

This commit is contained in:
Johannes Findeisen 2025-12-23 20:49:07 +01:00
commit 92aacff71a
41 changed files with 654 additions and 130 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env fun
// The shebang line makes no sense here because this is a library which will
// never be executed, but it shows that it is not wrong.
// The shebang line makes no sense here because this is a library which will
// never be executed, but it shows that it is not wrong.
/*
* This file is part of the Fun programming language.
@ -23,3 +23,8 @@ class Greeter(string prefix)
// Methods must declare 'this' as the first parameter
fun say(this, name)
print(this.prefix + " " + to_string(name))
/* Expected output:
None, it's a lib.
*/