made parsing slightly more forgiving with respect to commas, in case user
hand-edits calibration file
This commit is contained in:
parent
83a410a7b8
commit
1a67e3d7af
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue