Add missing semi-colons in parser rules.

Plus a few minor spelling/formatting fixes.
This commit is contained in:
Martin Whitaker 2012-08-01 22:01:44 +01:00 committed by Stephen Williams
parent 813f548a4b
commit 5aa97b379d
4 changed files with 12 additions and 5 deletions

11
parse.y
View File

@ -2398,8 +2398,9 @@ config_rule_statement
;
opt_config
: /* The use clause takse an optional :config. */
: /* The use clause takes an optional :config. */
| ':' K_config
;
lib_cell_id
: IDENTIFIER
@ -2412,6 +2413,7 @@ list_of_libraries
: /* A NULL library means use the parents cell library. */
| list_of_libraries IDENTIFIER
{ delete[] $2; }
;
drive_strength
: '(' dr_strength0 ',' dr_strength1 ')'
@ -4297,7 +4299,7 @@ module_item
{ 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_item
@ -4828,8 +4830,9 @@ range_opt
;
dimensions_opt
: { $$ = 0; }
| dimensions { $$ = $1; }
: { $$ = 0; }
| dimensions { $$ = $1; }
;
dimensions
: variable_dimension

View File

@ -127,7 +127,7 @@ vendor
sdf_parse_path, @2.first_line, $3);
free($3);
}
;
;
program_name
: '(' K_PROGRAM QSTRING ')'

View File

@ -121,6 +121,7 @@ static void process_point()
*/
table : point
| table point
;
/*
* 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.
@ -179,6 +181,7 @@ columns : REAL
} else if (cur_columns == dep_column) values[indep_values] = $2;
cur_columns += 1;
}
;
%%

View File

@ -153,6 +153,7 @@ header_line
footer_lines
: K_file_names T_NUMBER ';' { file_names.reserve($2); }
name_strings
;
name_strings
: T_STRING ';'