made parsing slightly more forgiving with respect to commas, in case user

hand-edits calibration file
This commit is contained in:
Frank Mori Hess 2003-03-06 19:07:33 +00:00
parent 83a410a7b8
commit 1a67e3d7af

View file

@ -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
;