Code examples

Here are a few ufLang examples to show you the synthax of the language.

PrintUf

printuf prints a string and adds a little "uf" at the beginning:

printuf("Hello World!");

// Output: "uf Hello World!"

var x : Int = 43;
var y : String = "hello";
var z : Double = 2.5;

print("Here is x: ");
println(x);
print("Here is y: ");
println(y);
print("Here is z: ");
println(z);

y = "hihi";
print("Here is y after set: ");
println(y);

Classes

Return types

Loops

Last updated