Add missing semi-colons in parser rules.
Plus a few minor spelling/formatting fixes.
This commit is contained in:
parent
813f548a4b
commit
5aa97b379d
11
parse.y
11
parse.y
|
|
@ -2398,8 +2398,9 @@ config_rule_statement
|
||||||
;
|
;
|
||||||
|
|
||||||
opt_config
|
opt_config
|
||||||
: /* The use clause takse an optional :config. */
|
: /* The use clause takes an optional :config. */
|
||||||
| ':' K_config
|
| ':' K_config
|
||||||
|
;
|
||||||
|
|
||||||
lib_cell_id
|
lib_cell_id
|
||||||
: IDENTIFIER
|
: IDENTIFIER
|
||||||
|
|
@ -2412,6 +2413,7 @@ list_of_libraries
|
||||||
: /* A NULL library means use the parents cell library. */
|
: /* A NULL library means use the parents cell library. */
|
||||||
| list_of_libraries IDENTIFIER
|
| list_of_libraries IDENTIFIER
|
||||||
{ delete[] $2; }
|
{ delete[] $2; }
|
||||||
|
;
|
||||||
|
|
||||||
drive_strength
|
drive_strength
|
||||||
: '(' dr_strength0 ',' dr_strength1 ')'
|
: '(' dr_strength0 ',' dr_strength1 ')'
|
||||||
|
|
@ -4297,7 +4299,7 @@ module_item
|
||||||
{ pform_set_timeprecision($2, true, true); }
|
{ pform_set_timeprecision($2, true, true); }
|
||||||
;
|
;
|
||||||
|
|
||||||
generate_if : K_if '(' expression ')' { pform_start_generate_if(@1, $3); }
|
generate_if : K_if '(' expression ')' { pform_start_generate_if(@1, $3); } ;
|
||||||
|
|
||||||
generate_case_items
|
generate_case_items
|
||||||
: generate_case_items generate_case_item
|
: generate_case_items generate_case_item
|
||||||
|
|
@ -4828,8 +4830,9 @@ range_opt
|
||||||
;
|
;
|
||||||
|
|
||||||
dimensions_opt
|
dimensions_opt
|
||||||
: { $$ = 0; }
|
: { $$ = 0; }
|
||||||
| dimensions { $$ = $1; }
|
| dimensions { $$ = $1; }
|
||||||
|
;
|
||||||
|
|
||||||
dimensions
|
dimensions
|
||||||
: variable_dimension
|
: variable_dimension
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ vendor
|
||||||
sdf_parse_path, @2.first_line, $3);
|
sdf_parse_path, @2.first_line, $3);
|
||||||
free($3);
|
free($3);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
program_name
|
program_name
|
||||||
: '(' K_PROGRAM QSTRING ')'
|
: '(' K_PROGRAM QSTRING ')'
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,7 @@ static void process_point()
|
||||||
*/
|
*/
|
||||||
table : point
|
table : point
|
||||||
| table point
|
| table point
|
||||||
|
;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* An individual point is just a bunch of columns followed by one or more
|
* An individual point is just a bunch of columns followed by one or more
|
||||||
|
|
@ -156,6 +157,7 @@ point : columns END_LINE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Each column is a real value. We only save the columns we care about.
|
* Each column is a real value. We only save the columns we care about.
|
||||||
|
|
@ -179,6 +181,7 @@ columns : REAL
|
||||||
} else if (cur_columns == dep_column) values[indep_values] = $2;
|
} else if (cur_columns == dep_column) values[indep_values] = $2;
|
||||||
cur_columns += 1;
|
cur_columns += 1;
|
||||||
}
|
}
|
||||||
|
;
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -153,6 +153,7 @@ header_line
|
||||||
footer_lines
|
footer_lines
|
||||||
: K_file_names T_NUMBER ';' { file_names.reserve($2); }
|
: K_file_names T_NUMBER ';' { file_names.reserve($2); }
|
||||||
name_strings
|
name_strings
|
||||||
|
;
|
||||||
|
|
||||||
name_strings
|
name_strings
|
||||||
: T_STRING ';'
|
: T_STRING ';'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue