Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

4 years ago
  1. #include <stdlib.h>
  2. #include "y1.h"
  3. /*
  4. * 12-Apr-83 (RBD) Add symbolic exit status
  5. */
  6. extern FILE * finput;
  7. extern FILE * faction;
  8. extern FILE * fdefine;
  9. extern FILE * ftable;
  10. extern FILE * ftemp;
  11. extern FILE * foutput;
  12. #ifdef DEBUG
  13. #define MSG(msg) puts(msg)
  14. #else
  15. #define MSG(msg)
  16. #endif
  17. void _CRTAPI1 main(int argc,char **argv)
  18. {
  19. MSG("Setup...");
  20. setup(argc,argv); /* initialize and read productions */
  21. MSG("cpres ...");
  22. tbitset = NWORDS(ntokens);
  23. cpres(); /* make table of which productions yield a given nonterminal */
  24. MSG("cempty ...");
  25. cempty(); /* make a table of which nonterminals can match the empty string */
  26. MSG("cpfir ...");
  27. cpfir(); /* make a table of firsts of nonterminals */
  28. MSG("stagen ...");
  29. stagen(); /* generate the states */
  30. MSG("output ...");
  31. output(); /* write the states and the tables */
  32. MSG("go2out ...");
  33. go2out();
  34. MSG("hideprod ...");
  35. hideprod();
  36. MSG("summary ...");
  37. summary();
  38. MSG("callopt ...");
  39. callopt();
  40. MSG("others ...");
  41. others();
  42. MSG("DONE !!!");
  43. exit(EX_SUC);
  44. }