mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
28 lines
345 B
Text
28 lines
345 B
Text
main() {
|
|
Print("Hello world!");
|
|
x = {};
|
|
x.a = 123;
|
|
x.b = "Hello!";
|
|
|
|
:out = x;
|
|
|
|
x.foo = @(x) { .a = x; };
|
|
|
|
x.foo("test");
|
|
:out2 = x.a;
|
|
|
|
:out3 = [];
|
|
for(i = 0; i < 10; i++)
|
|
:out3[] = i;
|
|
|
|
a = Zero();
|
|
if(a == 0)
|
|
:out4 = 1;
|
|
|
|
:out5 = 0;
|
|
for(i = 0; i < 10; i++) {
|
|
if(i < 5)
|
|
continue;
|
|
:out5++;
|
|
}
|
|
}
|