forked from cosmonaut/wraith-lang
45 lines
830 B
OpenEdge ABL
45 lines
830 B
OpenEdge ABL
struct MyStruct {
|
|
static MyFunc(): int {
|
|
myStructInt: int = 595959959;
|
|
return myStructInt;
|
|
}
|
|
}
|
|
|
|
struct Program {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
someInt: int = 9585858;
|
|
|
|
return 0;
|
|
}
|
|
|
|
static Bar(): int {
|
|
return 0;
|
|
}
|
|
}
|