diff --git a/examples/hello_world.fun b/examples/hello_world.fun index 4c9d305..7587326 100755 --- a/examples/hello_world.fun +++ b/examples/hello_world.fun @@ -1,5 +1,7 @@ #!/usr/bin/env fun -fun hello_world() { - print("Hello, world!") -} +/* + * Hello world in Fun + */ + +print("Hello, world!") diff --git a/fun.fun b/fun.fun new file mode 100755 index 0000000..f667ce8 --- /dev/null +++ b/fun.fun @@ -0,0 +1,9 @@ +#!/usr/bin/env fun + +print("Yay, the playground for having fun... ;)") + +number n = 10 +print(n) + +string s = "Hello, world!" +print(s) diff --git a/history/0.1.0-print.fun b/history/0.1.0-print.fun index 33e01ae..f7cf60e 100755 --- a/history/0.1.0-print.fun +++ b/history/0.1.0-print.fun @@ -1,3 +1 @@ -fun hello_world() { - print("Hello, world!") -} +print("Hello, world!") diff --git a/history/0.2.0-shebang-comments-strings-integers-booleans-identifiers-simple-assignments-globals-print.fun b/history/0.2.0-shebang-comments-strings-integers-booleans-identifiers-simple-assignments-globals-print.fun index f77f572..0fca767 100755 --- a/history/0.2.0-shebang-comments-strings-integers-booleans-identifiers-simple-assignments-globals-print.fun +++ b/history/0.2.0-shebang-comments-strings-integers-booleans-identifiers-simple-assignments-globals-print.fun @@ -4,8 +4,6 @@ * Hello, world! */ -fun hello_world() { - print("Hello, world!") -} +print("Hello, world!") // Bye, world! diff --git a/spec/v0.1.md b/spec/v0.1.md index a88b39a..af3d072 100644 --- a/spec/v0.1.md +++ b/spec/v0.1.md @@ -307,4 +307,3 @@ print "Current time: " + now ## 12. License This document and the Fun language reference are licensed under the Apache License 2.0 - diff --git a/spec/v0.2.md b/spec/v0.2.md index f96665d..d7a6bfc 100644 --- a/spec/v0.2.md +++ b/spec/v0.2.md @@ -414,4 +414,3 @@ print("Current time: " + now) ## 15. License This document and the Fun language reference are licensed under the Apache License 2.0 -