Calc.rb is a project mainly written in Ruby, it's free.
A simple expression calculator (using a recursive descent parser & Ruby)
To learn Ruby...
It uses a dead simple lexer (just use the scan method of strings).
The parser is a recursive descent one, it doesn't build an AST, it evaluate the expression on the fly.