Do a search on jflex and check out their website. This is a simpleparser that should work for your problem.