simple Parser written in Ruby