compile a grammer file