mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Some vhdl parser error handling.
This commit is contained in:
@@ -864,6 +864,16 @@ constant_declaration
|
|||||||
}
|
}
|
||||||
delete $2;
|
delete $2;
|
||||||
}
|
}
|
||||||
|
| K_constant identifier_list ':' error ';'
|
||||||
|
{ errormsg(@4, "Syntax error in constant declaration type.\n");
|
||||||
|
yyerrok;
|
||||||
|
delete $2;
|
||||||
|
}
|
||||||
|
| K_constant error ';'
|
||||||
|
{ errormsg(@2, "Syntax error in constant declaration.\n");
|
||||||
|
yyerrok;
|
||||||
|
}
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
context_clause : context_items | ;
|
context_clause : context_items | ;
|
||||||
@@ -1595,6 +1605,7 @@ package_body_declarative_part_opt
|
|||||||
package_declarative_item
|
package_declarative_item
|
||||||
: component_declaration
|
: component_declaration
|
||||||
| constant_declaration
|
| constant_declaration
|
||||||
|
| type_declaration
|
||||||
| subtype_declaration
|
| subtype_declaration
|
||||||
| type_declaration
|
| type_declaration
|
||||||
| use_clause
|
| use_clause
|
||||||
@@ -2139,6 +2150,10 @@ type_declaration
|
|||||||
yyerrok;
|
yyerrok;
|
||||||
delete[]$2;
|
delete[]$2;
|
||||||
}
|
}
|
||||||
|
| K_type error ';'
|
||||||
|
{ errormsg(@1, "Error in type definition\n");
|
||||||
|
yyerrok;
|
||||||
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
type_definition
|
type_definition
|
||||||
|
|||||||
Reference in New Issue
Block a user