Merge b7f7e92535 into 4f31fec5c8
This commit is contained in:
commit
ba8f25476e
14
parse.y
14
parse.y
|
|
@ -999,6 +999,13 @@ class_items /* IEEE1800-2005: A.1.2 */
|
|||
| class_item
|
||||
;
|
||||
|
||||
pure_virtual_method_decl /* IEEE1800-2012: A.1.9 */
|
||||
: K_pure K_virtual K_task IDENTIFIER ';'
|
||||
| K_pure K_virtual K_task IDENTIFIER '(' tf_port_list_opt ')' ';'
|
||||
| K_pure K_virtual K_function data_type_or_implicit_or_void IDENTIFIER ';'
|
||||
| K_pure K_virtual K_function data_type_or_implicit_or_void IDENTIFIER '(' tf_port_list_opt ')' ';'
|
||||
;
|
||||
|
||||
class_item /* IEEE1800-2005: A.1.8 */
|
||||
|
||||
/* IEEE1800 A.1.8: class_constructor_declaration */
|
||||
|
|
@ -1039,6 +1046,11 @@ class_item /* IEEE1800-2005: A.1.8 */
|
|||
| method_qualifier_opt function_declaration
|
||||
{ /* The function_declaration rule puts this into the class */ }
|
||||
|
||||
| pure_virtual_method_decl
|
||||
{ yywarn(@1, "OOP Pure Virtual methods are supported as parse-only. "
|
||||
"No enforcement is done for a concrete class to define these further");
|
||||
}
|
||||
|
||||
/* External class method definitions... */
|
||||
|
||||
| K_extern method_qualifier_opt K_function K_new tf_port_list_parens_opt ';'
|
||||
|
|
@ -1993,7 +2005,7 @@ loop_variables /* IEEE1800-2005: A.6.8 */
|
|||
}
|
||||
;
|
||||
|
||||
method_qualifier /* IEEE1800-2005: A.1.8 */
|
||||
method_qualifier /* IEEE1800-2012: A.1.9 */
|
||||
: K_virtual
|
||||
| class_item_qualifier
|
||||
;
|
||||
|
|
|
|||
Loading…
Reference in New Issue