For both strings skip leading space delimiters. Parse newname and oldname delimited by a space. Create a definition for newname with the semantics defined below. Newname may be the same as oldname; when looking up oldname, newname shall not be found.
An ambiguous conditions exists if oldname can not be found or IMMEDIATE is applied to newname.
Perform the interpretation semantics of oldname.
Perform the compilation semantics of oldname.
IMMEDIATE?are non-standard words.
GerryJackson Incomplete specification of SYNONYMComment2016-11-22 10:02:04
Shouldn't the synonym of a word inherit the restrictions of the parent word. For example
SYNONYM NEW-TO TO
' NEW-TO \ Is apparently valid because it isn't forbidden whereas
' TO \ Is an ambiguous condition
Also this is not forbidden and would be rather confusing
SYNONYM TO TO
All that it needs is to add a sentence such as:
All ambiguous conditions applying to oldname, also apply to newname.