anoniscoding / yorlang

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

Add support for negative number literal #49

Closed mykeels closed 5 years ago

mykeels commented 5 years ago

Is your feature request related to a problem? Please describe. I tried to run this code:

sọpé ọjọ(
    aago(),
    -3
);

which is supposed to subtract 3 days from the current date, and it fails because it does not recognise -3, but it works if 0 - 3 is used instead.

Describe the solution you'd like Negative number literals should be recognisable.