Curle
59329d963f
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. Also, commit signing!
17 lines
212 B
Plaintext
17 lines
212 B
Plaintext
void :: main() {
|
|
|
|
int x;
|
|
char y;
|
|
|
|
x = 20; print x;
|
|
|
|
y = 10; print y;
|
|
|
|
for(x = 1; x <= 5; x = x + 1) {
|
|
print x;
|
|
}
|
|
|
|
for(y = 253; y != 2; y = y + 1) {
|
|
print y;
|
|
}
|
|
} |