home *** CD-ROM | disk | FTP | other *** search
- /* Give some help for bison,
- Copyright (C) 1984, 1986, 1989 Free Software Foundation, Inc.
-
- Written by Tim Capps, 4/17/90
-
- This file is part of Bison, the GNU Compiler Compiler.
-
- Bison is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 1, or (at your option)
- any later version.
-
- Bison is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with Bison; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
- #include <stdio.h>
- #include "system.h"
- #include "files.h"
-
- extern char *version_string;
-
- helper()
- {
- printf("%s\n",version_string);
- printf("Usage: bison {switches} grammar-file\n\n");
- printf("Switches:\n");
- printf(" -h Displays usage instructions\n");
- printf(" -d Produce a '.tab.h' file, similar to yacc 's 'y.tab.h' file.\n");
- printf(" -l Omit #line lines in the parser output file.\n");
- printf(" -t Turn on debugging. The external variable 'yydebug' should be made\n");
- printf(" non-zero to have the debugging code actually produce output.\n");
- printf(" -v Be verbose. Analogous to the same flag for yacc.\n");
- printf(" -y Use fixed output file names. I.e., force the output to be in files\n");
- printf(" y.tab.c, y.tab.h, and so on. This is for full yacc compatibility.\n");
- printf(" -o Specifies explicit output table file name.\n");
- printf("\n");
- printf(" -version Displays current bison version number.\n");
- }
-