wraith-lang/iftest.w

45 lines
830 B
OpenEdge ABL
Raw Permalink Normal View History

2021-05-08 21:51:15 +00:00
struct MyStruct {
static MyFunc(): int {
myStructInt: int = 595959959;
return myStructInt;
}
}
struct Program {
2021-05-08 21:51:15 +00:00
static Foo(): int {
return 0;
}
static Main(): int {
myInt: int = 54;
if (myInt < 0) {
signTag: int = 0 - 1;
} else if (myInt == 0) {
signTag: int = 0;
} else {
signTag: int = 1;
}
myBool: bool;
if (myBool) {
if (myBool) {
if (myBool) {
if (myBool) {
if (myBool) {
lol: int = 69;
}
}
}
}
}
2021-05-08 21:51:15 +00:00
someInt: int = 9585858;
return 0;
}
static Bar(): int {
return 0;
}
}