VedantParanjape / simpPRU

Intuitive language for PRU which compiles down to PRU C
https://simppru.readthedocs.io/en/latest/
MIT License
67 stars 11 forks source link

Added support for return statements #45

Open Krishna-13-cyber opened 2 years ago

Krishna-13-cyber commented 2 years ago

This PR adds the support for return statements to be called anywhere in the function body,it removes the requirement that return statements needed to be called at the end of a function body only. 1.The return statements can be called only in function and not anywhere else. 2.Function body without return statements report an error