Remove deprecated features

Trimming off the fat!
- GLOBAL and XDEF keywords
- Colon-less global labels
- *-comments
This commit is contained in:
ISSOtm
2021-01-02 02:42:44 +01:00
parent a70ecba06f
commit bd244e6865
3 changed files with 24 additions and 46 deletions

View File

@@ -568,10 +568,6 @@ label : /* empty */
| T_LOCAL_ID {
sym_AddLocalLabel($1);
}
| T_LABEL {
warning(WARNING_OBSOLETE, "Non-local labels without a colon are deprecated\n");
sym_AddLabel($1);
}
| T_LOCAL_ID T_COLON {
sym_AddLocalLabel($1);
}
@@ -898,17 +894,7 @@ purge_list : purge_list_entry
purge_list_entry : scoped_id { sym_Purge($1); }
;
export : export_token export_list
;
export_token : T_POP_EXPORT
| T_POP_GLOBAL {
warning(WARNING_OBSOLETE,
"`GLOBAL` is a deprecated synonym for `EXPORT`\n");
}
| T_POP_XDEF {
warning(WARNING_OBSOLETE, "`XDEF` is a deprecated synonym for `EXPORT`\n");
}
export : T_POP_EXPORT export_list
;
export_list : export_list_entry