home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c100 / 4.ddi / BISON.ZIP / HELPER.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-17  |  1.8 KB  |  46 lines

  1. /* Give some help for bison,
  2.    Copyright (C) 1984, 1986, 1989 Free Software Foundation, Inc.
  3.  
  4. Written by Tim Capps, 4/17/90
  5.         
  6. This file is part of Bison, the GNU Compiler Compiler.
  7.  
  8. Bison is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 1, or (at your option)
  11. any later version.
  12.  
  13. Bison is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with Bison; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  21.  
  22.  
  23. #include <stdio.h>
  24. #include "system.h"
  25. #include "files.h"
  26.  
  27. extern char *version_string;
  28.        
  29. helper()
  30. {
  31.     printf("%s\n",version_string);
  32.     printf("Usage: bison {switches} grammar-file\n\n");
  33.     printf("Switches:\n");
  34.     printf("  -h  Displays usage instructions\n");
  35.     printf("  -d  Produce a '.tab.h' file, similar to yacc 's 'y.tab.h' file.\n");
  36.     printf("  -l  Omit #line lines in the parser output file.\n");
  37.     printf("  -t  Turn on debugging.  The external variable 'yydebug' should be made\n");
  38.     printf("      non-zero to have the debugging code actually produce output.\n");
  39.     printf("  -v  Be verbose. Analogous to the same flag for yacc.\n");
  40.     printf("  -y  Use fixed output file names. I.e., force the output to be in files\n");
  41.     printf("      y.tab.c, y.tab.h, and so on. This is for full yacc compatibility.\n");
  42.     printf("  -o  Specifies explicit output table file name.\n");
  43.     printf("\n");
  44.     printf("  -version Displays current bison version number.\n");
  45. }
  46.