From 1a67e3d7afeef6ba36eb4d70ff588df8505921f8 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 6 Mar 2003 19:07:33 +0000 Subject: [PATCH] made parsing slightly more forgiving with respect to commas, in case user hand-edits calibration file --- lib/calib_yacc.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/calib_yacc.y b/lib/calib_yacc.y index cd4e299..1e1bf5d 100644 --- a/lib/calib_yacc.y +++ b/lib/calib_yacc.y @@ -246,7 +246,7 @@ extern struct calibration_file_contents* parse_calibration_file( FILE *file ) ; calibration_setting: /* empty */ { cal_index++; } - | calibration_setting_element + | calibration_setting_element { cal_index++; } | calibration_setting_element ',' calibration_setting ; @@ -293,7 +293,7 @@ extern struct calibration_file_contents* parse_calibration_file( FILE *file ) ; caldac: /* empty */ { add_caldac( parsed_file, caldac ); } - | caldac_element + | caldac_element { add_caldac( parsed_file, caldac ); } | caldac_element ',' caldac ; -- 2.26.2