home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / mawk11as.zip / PARSE2.XC < prev    next >
Text File  |  1991-12-18  |  1KB  |  52 lines

  1.  
  2. /********************************************
  3. parse2.xc
  4. copyright 1991, Michael D. Brennan
  5.  
  6. This is a source file for mawk, an implementation of
  7. the AWK programming language.
  8.  
  9. Mawk is distributed without warranty under the terms of
  10. the GNU General Public License, version 2, 1991.
  11. ********************************************/
  12.  
  13. /* $Log:    parse2.xc,v $
  14. Revision 5.1  91/12/05  07:52:38  brennan
  15. 1.1 pre-release
  16.  
  17. */
  18.  
  19. /* If using Berkeley yacc, we can put the parser table 
  20.    memory to the zmalloc pool.  This is kind of ugly and
  21.    with paged vm probably a nop, but for DOS and MINIX and ??
  22.    it frees a considerably amount of memory.
  23.  
  24.    This file is part of parse.c via
  25.       cat  y.tab.c  parse2.xc  > parse.c
  26. */
  27.  
  28. static struct yacc_mem   yacc_mem[] = 
  29. {
  30. 0 , 0 ,  /* don't remove this */
  31.  
  32. #ifdef   YYBYACC
  33. (PTR) yycheck, sizeof(yycheck)/ZBLOCKSZ,
  34. (PTR) yytable, sizeof(yytable)/ZBLOCKSZ,
  35. #ifndef  YYXBYACC  /* with xbyacc these are storage auto */
  36. (PTR) yyvs , sizeof(yyvs)/ZBLOCKSZ,
  37. (PTR) yyss, sizeof(yyss)/ZBLOCKSZ,
  38. #endif
  39. (PTR) yydefred, sizeof(yydefred)/ZBLOCKSZ,
  40. (PTR) yydgoto, sizeof(yydgoto)/ZBLOCKSZ,
  41. (PTR) yygindex, sizeof(yygindex)/ZBLOCKSZ,
  42. (PTR) yylen, sizeof(yylen)/ZBLOCKSZ,
  43. (PTR) yylhs, sizeof(yylhs)/ZBLOCKSZ,
  44. (PTR) yyrindex, sizeof(yyrindex)/ZBLOCKSZ,
  45. (PTR) yysindex, sizeof(yysindex)/ZBLOCKSZ,
  46. #endif
  47.  
  48. 0,0 } ;
  49.  
  50. struct yacc_mem  *yacc_memp = yacc_mem ;
  51.  
  52.