Curle
430829e4ec
Currently has two bugs. First, all functions are resolved to index 0 (currently PrintInteger) Second, the register used for returning is immediately overwritten by the next allocated register. This means addition of function return values is a little silly.
13 lines
150 B
Plaintext
13 lines
150 B
Plaintext
{
|
|
int x;
|
|
|
|
x = 0;
|
|
while (x < 10) {
|
|
print x;
|
|
x = x + 1;
|
|
}
|
|
|
|
for(x = 20; x > 10; x = x - 1) {
|
|
print x;
|
|
}
|
|
} |