anoniscoding / yorlang

A programming language with yoruba language construct
https://anoniscoding.github.io/yorlang/
MIT License
450 stars 70 forks source link

No terminator in increment section of "fun" #57

Closed mykeels closed 5 years ago

mykeels commented 5 years ago

Currently, the syntax for fun is:

fún (jeki i = 1; i <= 5; jeki i = i + 1;) {
    sọpé yipo(7);
}

The ending semi-colon is somewhat redundant.

This PR helps fix that, by removing support for it, so it should now be written as:

fún (jeki i = 1; i <= 5; jeki i = i + 1) {
    sọpé yipo(7);
}
anoniscoding commented 5 years ago

Thank you for this PR bro

mykeels commented 5 years ago

Changes made @anoniscoding