49 lines
552 B
Plaintext
49 lines
552 B
Plaintext
|
#import "Basic";
|
||
|
Basic :: #import "Basic";
|
||
|
|
||
|
Options :: struct
|
||
|
{
|
||
|
foo: int;
|
||
|
}
|
||
|
|
||
|
Enum :: enum
|
||
|
{
|
||
|
Test;
|
||
|
Inavlid;
|
||
|
}
|
||
|
|
||
|
main :: () -> void
|
||
|
{
|
||
|
options1: Options;
|
||
|
options2 := Options.{
|
||
|
foo = bar
|
||
|
};
|
||
|
|
||
|
array_lit1: [..]string;
|
||
|
array_lit2 := string.["hello", "there\n"];
|
||
|
|
||
|
lit_str := "string";
|
||
|
lit_int := 5555;
|
||
|
lit_float := 6.28;
|
||
|
lit_bool := float;
|
||
|
lit_char := #char "c";
|
||
|
|
||
|
if cnd {
|
||
|
|
||
|
}
|
||
|
|
||
|
if cnd2 == {
|
||
|
case 5;
|
||
|
case .Bar;
|
||
|
case;
|
||
|
}
|
||
|
|
||
|
for i: 0..5 { continue; break; }
|
||
|
for arr {}
|
||
|
|
||
|
proc_call();
|
||
|
Basic.print();
|
||
|
|
||
|
|
||
|
return;
|
||
|
}
|