refu-lang / refu

Refu language
21 stars 4 forks source link

Add postfix increment/decrement operator #16

Open LefterisJP opened 7 years ago

LefterisJP commented 7 years ago

At the moment we only have a syntactic prefix increment and decrement operator ++ and -- which acts like a postfix operator. Think on whether we also want the postfix one and if yes then properly implement the different behaviour in the backend too.

Remember that the rule is:

At the moment in the backend we simply increment or decrement one to the expression's value after it has been evaluated.