home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OS2-YACC.ZIP / Y4IMP.C < prev    next >
Text File  |  1980-01-04  |  1KB  |  40 lines

  1. /*
  2.   HEADER: CUG     nnn.nn;
  3.   TITLE:     YACC - Yet Another Compilier-Compilier
  4.   VERSION:     1.0 for IBM-PC
  5.   DATE:      JAN 28, 1985
  6.   DESCRIPTION:     LALR(1) Parser Generator. From UNIX
  7.   KEYWORDS:     Parser Generator Compilier-Compilier YACC
  8.   SYSTEM:     IBM-PC and Compatiables
  9.   FILENAME:      Y4IMP.C
  10.   WARNINGS:     This program is not for the casual user. It will
  11.          be useful primarily to expert developers.
  12.   CRC:         N/A
  13.   SEE-ALSO:     LEX and PREP
  14.   AUTHORS:     Scott Guthery 11100 leafwood lane Austin, TX 78750
  15.   COMPILERS:     DESMET-C
  16.   REFERENCES:     UNIX Systems Manuals
  17. */
  18.  
  19. /* Impure data from y4.c modules */
  20.  
  21. # include "dtxtrn.h"
  22.  
  23. # define a amem
  24. # define pa indgo
  25. # define yypact temp1
  26. # define greed tystate
  27.  
  28. # define NOMORE -1000
  29.  
  30. int * ggreed = lkst[0].lset;
  31. int * pgo = wsets[0].ws.lset;
  32. int *yypgo = &nontrst[0].tvalue;
  33.  
  34. int maxspr = 0;  /* maximum spread of any entry */
  35. int maxoff = 0;  /* maximum offset into a array */
  36. int *pmem = mem0;
  37. int *maxa;
  38. int nxdb = 0;
  39. int adb = 0;
  40.