forked from cosmonaut/wraith-lang
28 lines
1.5 KiB
OpenEdge ABL
28 lines
1.5 KiB
OpenEdge ABL
struct Program { // Scope ()
|
|
static Main(): int { // | Program : Struct
|
|
myInt: int = 54; // | | Main : Function
|
|
if (myInt < 0) { // | | | myInt : Variable
|
|
signTag: int = 0 - 1; // | | | Scope (if-else)
|
|
} else if (myInt == 0) { // | | | | Scope (if)
|
|
signTag: int = 0; // | | | | | signTag : Variable
|
|
} else { // | | | | Scope (else)
|
|
signTag: int = 1; // | | | | | Scope (if)
|
|
} // | | | | | | signTag : Variable
|
|
// | | | myBool : Variable
|
|
myBool: bool; // | | | Scope (if)
|
|
if (myBool) { // | | | | Scope (if)
|
|
if (myBool) { // | | | | | Scope (if)
|
|
if (myBool) { // | | | | | | Scope (if)
|
|
if (myBool) { // | | | | | | | Scope (if)
|
|
if (myBool) { // | | | | | | | | lol : Variable
|
|
lol: int = 69;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
}
|