error LL1 in function and proto in Parser. too weird.

This commit is contained in:
Vu Tuan Minh
2025-04-28 06:20:11 +02:00
parent 85a693acbd
commit 19af482a32
4 changed files with 46 additions and 27 deletions

View File

@@ -1,8 +1,8 @@
PROTO INT add(x,y)
PROTO INT add()
FUNC INT add(x,y) {
FUNC INT add() {
INT z
z := x+y
z := 1
RETURN z
}
@@ -11,7 +11,7 @@ FUNC INT main(x,y) {
x := 5
minh := x * y
b:=3
c:=add(x,b)
c:=add()
PRINT "coucou, tu peux réparer le visitPrint dans LLVM stp","il manque virgule au milieu", c*5+b
WHILE b - 1
DO{