adam-mcdaniel / oakc

A portable programming language with a compact intermediate representation
Apache License 2.0
725 stars 21 forks source link

Added the % operator #87

Open adam-mcdaniel opened 4 years ago

adam-mcdaniel commented 4 years ago

This PR adds the modulus method to Target, which implements the integer modulus operation. It also adds an example named mod.ok which demonstrates finding the days in each month and whether or not a year is a leap year using the modulus operator.