made parsing slightly more forgiving with respect to commas, in case user
authorFrank Mori Hess <fmhess@speakeasy.net>
Thu, 6 Mar 2003 19:07:33 +0000 (19:07 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Thu, 6 Mar 2003 19:07:33 +0000 (19:07 +0000)
hand-edits calibration file

lib/calib_yacc.y

index cd4e2991fce8a0e5f45900ee960fdf2b1e523bb3..1e1bf5d0bd74d209aa6c2b8eb0577165fc755981 100644 (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
                ;