I've never had the opportunity to write code for a compiler but it's something that's always been pretty interesting to me so I decided to write a little toy calculator:
calc("1 + 3 / 5")
It was a pretty fun project as you get to do some parsing/lexing, work out how to execute it (function ordering etc.) and then have lots of fun little avenues you can go down (brackets for specifying execution order, adding more functions, arbitrary precision maths etc.)