home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / comm / yaccunx / ymain.1c < prev    next >
Encoding:
Text File  |  1983-12-24  |  908 b   |  36 lines

  1. #include "y1.h"
  2. /*
  3.  * 12-Apr-83 (RBD) Add symbolic exit status
  4.  */
  5. main(argc,argv) int argc;
  6. char *argv[];
  7.  
  8.    {
  9.  
  10.    puts("Setup...");
  11.    setup(argc,argv); /* initialize and read productions */
  12.    puts("cpres ...");
  13.    tbitset = NWORDS(ntokens);
  14.    cpres(); /* make table of which productions yield a given nonterminal */
  15.    puts("cempty ...");
  16.    cempty(); /* make a table of which nonterminals can match the empty string */
  17.    puts("cpfir ...");
  18.    cpfir(); /* make a table of firsts of nonterminals */
  19.    puts("stagen ...");
  20.    stagen(); /* generate the states */
  21.    puts("output ...");
  22.    output();  /* write the states and the tables */
  23.    puts("go2out ...");
  24.    go2out();
  25.    puts("hideprod ...");
  26.    hideprod();
  27.    puts("summary ...");
  28.    summary();
  29.    puts("callopt ...");
  30.    callopt();
  31.    puts("others ...");
  32.    others();
  33.    puts("DONE !!!");
  34.    exit(EX_SUC);
  35.    }
  36.