This perl.com page has a pretty darn good tutorial on Parse::RecDescent. That should help you out.
As Abigail-II says, Parse::RecDescent is probably overkill. But, I love to use little projects like this to learn these powerful modules. So, give the tutorial a shot!