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

  1.  
  2. # include "y1.h" 
  3.  
  4. void prlook( p )
  5. struct looksets * p;
  6.  
  7. {
  8.   register j,
  9.          * pp;
  10.   pp = p->lset;
  11.   if ( pp == 0 )
  12.     fprintf( foutput, "\tNULL" );
  13.   else
  14.     {
  15.       fprintf( foutput, " { " );
  16.       TLOOP( j )
  17.         {
  18.           if ( BIT( pp, j ) )
  19.             fprintf( foutput, "%s ", symnam( j ) );
  20.         }
  21.       fprintf( foutput, "}" );
  22.     }
  23. }
  24.