home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 4.ddi / BISON.ZIP / README < prev    next >
Encoding:
Text File  |  1990-05-01  |  1.9 KB  |  42 lines

  1. This directory contains the Bison parser generator.
  2.  
  3. When installing Bison on Sequent (or Pyramid?) systems, you must
  4. be in the Berkeley universe.
  5.  
  6. On systems that do not have a working `alloca' function, you will
  7. have to get a working `alloca' (perhaps from GNU Emacs) and edit the
  8. Makefile so that it will be used.
  9.  
  10. On system V, you will need to define the macro USG while compiling.
  11.  
  12. Send bug reports to bug-gnu-utils@prep.ai.mit.edu.
  13. Please include the date and author of the last entry in ChangeLog
  14. in each bug report; this serves as a version number for Bison.
  15.  
  16. Check CHANGE.LOG for details on changes.
  17.  
  18. -----
  19.  
  20. Note from Tim Capps:
  21.  
  22. I have removed the grammar table compression code, as it doesn't work.
  23. The problem occurs when you have unused rules in your grammar.  They are
  24. output to the ftable file by reader.c, then when reduce.c gets a chance
  25. to play, it removes all unused rules from the table and adjusts the rule
  26. numbers.  The trouble is that as reader.c has already written the rules
  27. (including the unused ones) to the output .C file, the rule numbers don't
  28. match up anymore.  A symptom of this is that the -v report shows correct
  29. grammar and descision matrix, but when you use the grammar, it actually
  30. executes the wrong reduction rules (although debug still outputs the
  31. correct number).
  32.  
  33. The tables and code to manipulate them are quite complex, and unfortunately
  34. I don't have time to dig into them at the moment.  Suffice it to say that
  35. the bug isn't there anymore, as the code is not called.  However, at some
  36. point, it would probably be nice to put the code back in and fix it.  If
  37. anybody manages to do this, please let me know (Compuserve: 76347,35).
  38.  
  39. Zortech C does not allow the nasty alloca tricks that I have seen in other
  40. versions of bison.  Thanks a million to the kind soul who wrote the clever
  41. new alloca system (which should work with ANY C).
  42.