BAD if
name is not a valid Rexx symbol. It returns
VAR if it is the name of a variable, that is,
a symbol that has been assigned a value. Otherwise, it returns
LIT, indicating that it is either
a constant symbol, an environment symbol, or a symbol that has not yet been assigned a value, that
is, a literal./* following: Drop A.3; J=3 */
SYMBOL("J") --> "VAR"
SYMBOL(J) --> "LIT" /* has tested "3" */
SYMBOL("a.j") --> "LIT" /* has tested A.3 */
SYMBOL(2) --> "LIT" /* a constant symbol */
SYMBOL(".TRUE") --> "LIT" /* an environment symbol */
SYMBOL("*") --> "BAD" /* not a valid symbol */