This commit is contained in:
Vu Tuan Minh
2025-04-30 13:44:12 +02:00
parent 854b2387c4
commit 88c5047e5f
18 changed files with 66 additions and 51 deletions

View File

@@ -1,34 +1,4 @@
PROTO INT add(a,b)
FUNC INT add(a,b) {
INT z
z := a+b
RETURN z
}
FUNC VOID affiche(x){
PRINT x
}
FUNC INT main(x,y) {
INT a,b,c,minh
x := 5
minh := x * y
b:=3
affiche(b)
c:=add(x,b)
PRINT "coucou, tu peux réparer le visitPrint dans LLVM stp","il manque virgule au milieu", c*5+b, x
PRINT "test",a
WHILE b - 1
DO{
b := b - 1
c := c + 1
}
DONE
IF c -1
THEN READ a ELSE READ b
FI
b:=c+1
RETURN 4 + 6 * 5 + 2 }
PROTO INT type(x,y)
INT a,b[10],c,d[11]
a:=1
}