home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / OS2-YACC.ZIP / Y4.H < prev    next >
C/C++ Source or Header  |  1989-09-30  |  2KB  |  60 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:      Y4.H
  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. /********************************************************************************/
  20. /*                              *************                                   */
  21. /*                              *  Y 4 . H  *                                   */
  22. /*                              *************                                   */
  23. /*                                                                              */
  24. /*  This file contains the external declarations needed to hook Yacc modules    */
  25. /* which were originally in Y4.C to their impure data in Y4IMP.4C. Also does    */
  26. /* the include of the original data/external file DTXTRN.H.                     */
  27. /*                                                                              */
  28. /********************************************************************************/
  29.  
  30. # include <ctype.h>
  31. # include "dtxtrn.h"
  32.  
  33. # define a amem
  34. # define pa indgo
  35. # define yypact temp1
  36. # define greed tystate
  37.  
  38. # define NOMORE -1000
  39.  
  40. extern int * ggreed;
  41. extern int * pgo;
  42. extern int *yypgo;
  43.  
  44. extern int maxspr;              /* maximum spread of any entry */
  45. extern int maxoff;              /* maximum offset into a array */
  46. extern int *pmem;
  47. extern int *maxa;
  48. extern int nxdb;
  49. extern int adb;
  50.  
  51. void callopt( void );
  52. void aoutput( void );
  53. void arout( char *, int *, int );
  54. void osummary( void );
  55. void gin( int );
  56. void stin( int );
  57. int nxti( void );
  58. int gtnm( void );
  59.  
  60.