rzimmerman / kal

A powerful, easy-to-use, and easy-to-read programming language for the future.
http://rzimmerman.github.io/kal
MIT License
394 stars 18 forks source link

Added mod operator #90

Closed mrshu closed 11 years ago

mrshu commented 11 years ago

As described in #79 and with help provided by @rzimmerman in #78 I've implemented (if we can call that implementing) the mod operator.

dijs commented 11 years ago

I cannot get the modular operator to work at all...

console.log 5 % 2

gives the error: invalid token '% 2...'

mrshu commented 11 years ago

@rompetoto Well, it was decided that mod will be the modular operator (see the discussion at #79). On my pull request's branch I can do

kal> console.log 5 mod 2
1

Which I find satisfactory. Does that work for you too?

dijs commented 11 years ago

Sure that would work!

It is not on master yet right?

mrshu commented 11 years ago

@rompetoto It is now =)