GEDFORM provides a useful parsing script to evaluate or generate .ged files.