kin-lang / kin

The Kin Programming Language ( Write computer programs in Kinyarwanda - native language for Rwandans )
https://kinlang.dev
MIT License
209 stars 11 forks source link

[BUG] : Unterminated function's body statements #119

Closed pacifiquem closed 5 months ago

pacifiquem commented 5 months ago

This issue was discovered in #117 by kin-lang/algorithms#1.

In #117 (v0.3.0)

porogaramu_ntoya garura_a(a) {
  tanga a
}

porogaramu_ntoya garura_b(b) {
  tanga b
}

porogaramu_ntoya teranya(a, b) {
  reka ab = garura_a(a)
  reka ba = garura_b(b)
  tanga ab + ba
}

tangaza_amakuru(teranya(1, 2))

Those codes returns 1 instead of 3