home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compcomp / cgrammer / readme < prev    next >
Encoding:
Text File  |  1986-03-24  |  1.4 KB  |  28 lines

  1. The files in this directory contain the ANSI C grammar from the Nov 12, 1984
  2. draft of the standard.  Note that a newer draft has come out since then.
  3. I have applied the two bug fixes I have seen reported on the net for this
  4. grammar.
  5.  
  6. With a little work, this grammar can be made to parse regular C.
  7. I am reposting it, due to popular demand.  Credit for creating this in
  8. the first place goes to my office mate, Jeff Lee, gatech!jeff.
  9.  
  10. Here is his original note:
  11. > This is the current (Nov 12, 1984) draft of the C grammar in Yacc form
  12. > with a little scanner I wrote in Lex so that you end up with a complete
  13. > program with which you can amaze and befuddle your friends. Or you can
  14. > sit and crank your own output through it to amuse yourself if you have the
  15. > personality of a cumquat(sp?). This contains nothing to handle preprocessor
  16. > stuff nor to handle "#line" directives so you must remove these beforehand
  17. > to allow it to parse the stuff. Also, it bypasses the typedef problem
  18. > by always returning an IDENTIFIER when it encounters anything that looks
  19. > like an IDENTIFIER, but it has a little stub in place where you would put
  20. > your symbol table lookup to determine if it a typedef or not. Other than
  21. > that, this is all yours. Wear it in good health and if anyone asks, just say
  22. > I told you so. Oh, by the way..... this is in 'shar' format, so you know
  23. > what to do.
  24.  
  25. Arnold Robbins
  26. gatech!arnold
  27. May, 1985
  28.