$ in identifiers and yacc

Tim Maroney tim at cmu-cs-k.ARPA
Fri Dec 14 19:17:24 AEST 1984


There is no problem with yacc and a C compiler that accepts '$' in
identifiers.  All existing yacc programs would continue to work, and future
ones would simply be written without using '$' in the identifiers.  It is
not as if making the change would break anything or make yacc less useful.

It is my impression that the reason for '$' would be to access DEC OS
globals.  There are numerous other ways to do this, and that one
(assembly-language output filtering) requires absolutely no change to the
language.
-=-
Tim Maroney, Carnegie-Mellon University Computation Center
ARPA:	Tim.Maroney at CMU-CS-K	uucp:	seismo!cmu-cs-k!tim
CompuServe:	74176,1360	audio:	shout "Hey, Tim!"

"Remember all ye that existence is pure joy; that all the sorrows are
but as shadows; they pass & are done; but there is that which remains."
Liber AL, II:9.



More information about the Comp.lang.c mailing list