more consistant naming

This commit is contained in:
zongor 2025-07-13 00:15:36 -04:00
parent 3e46c04513
commit c4d1aec83f
4 changed files with 14 additions and 7 deletions

View File

@ -1,6 +0,0 @@
int add(int a, int b) {
return a + b;
}
int sum = add(1, 1);
print(sum.toS());

View File

@ -1,2 +1,6 @@
int sum = 1 + 2;
int add(int a, int b) {
return a + b;
}
int sum = add(1, 1);
print(sum.toS());

7
test/simple.s Normal file
View File

@ -0,0 +1,7 @@
main:
loadu $0 1
loadu $1 2
addu $2 $1 $0
utos $3 $2
puts $3
halt

2
test/simple.zre Normal file
View File

@ -0,0 +1,2 @@
int sum = 1 + 2;
print(sum.toS());