home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / doc / yacc / ssc < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.2 KB  |  33 lines

  1. .SH
  2. Appendix C: Old Features Supported but not Encouraged
  3. .PP
  4. This appendix mentions synonyms and features which are supported for historical
  5. continuity, but, for various reasons, are not encouraged.
  6. .IP 1.
  7. Literals may be delimited by double quotes ``"'' as well as single quotes ``\'''.
  8. .IP 2.
  9. Literals may be more than one character long.
  10. If all the characters are alphabetic, numeric, or \_, the type number of the literal is defined,
  11. just as if the literal did not have the quotes around it.
  12. Otherwise, it is difficult to find the value for such literals.
  13. .IP
  14. The use of multi-character literals is likely to mislead those unfamiliar with
  15. Yacc, since it suggests that Yacc is doing a job which must be actually done by the lexical analyzer.
  16. .IP 3.
  17. Most places where % is legal, backslash ``\e'' may be used.
  18. In particular, \e\e is the same as %%, \eleft the same as %left, etc.
  19. .IP 4.
  20. There are a number of other synonyms:
  21. .DS
  22. %< is the same as %left
  23. %> is the same as %right
  24. %binary and %2 are the same as %nonassoc
  25. %0 and %term are the same as %token
  26. %= is the same as %prec
  27. .DE
  28. .IP 5.
  29. The curly braces ``{'' and ``}'' around an action are optional if the action consists of
  30. a single C statement.
  31. (They are always required in Ratfor).
  32. .bp
  33.