Now supports function calling

This commit is contained in:
Pasha Bibko
2025-05-11 15:17:07 +01:00
parent c47889a4ff
commit 2a47fd1756
9 changed files with 206 additions and 44 deletions

View File

@@ -3,12 +3,19 @@ func add(int a, int b)
return a + b
}
func sub(int c, int d)
{
return add(c, 0 - d)
}
func mul(int e, int f)
{
return e * f
}
func main()
{
int a
a = 5 + 2
int g = mul(add(7, 5), sub(5, 3))
int b = 6 + 1
return a + b
return g
}