home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / yaccsrc2 / yaoput.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-19  |  318 b   |  16 lines

  1.  
  2. # include "y4.h" 
  3.  
  4. void aoutput( )
  5. {
  6.   /* this version is for C */
  7.   /* write out the optimized parser */
  8.  
  9.   fprintf( ftable, "# define YYLAST %ld\n", maxa - yyact + 1 );
  10.  
  11.   arout( "yyact", yyact, ( int )( maxa - yyact ) + 1 );
  12.   arout( "yypact", pa, nstate );
  13.   arout( "yypgo", pgo, nnonter + 1 );
  14.  
  15. }
  16.