bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03-dead-or-obsolete.patch


From: Akim Demaille
Subject: 03-dead-or-obsolete.patch
Date: Tue, 12 Nov 2002 08:44:13 +0100

Index: 0.5/ChangeLog
--- 0.5/ChangeLog Sat, 09 Nov 2002 10:36:21 +0100 akim (bison/d/40_ChangeLog 
1.3 644)
+++ 0.5(w)/ChangeLog Sat, 09 Nov 2002 10:43:59 +0100 akim (bison/d/40_ChangeLog 
1.3 644)
@@ -1,5 +1,12 @@
 2002-11-09  Akim Demaille  <address@hidden>
 
+       * src/getargs.c (long_options): Remove duplicates.
+       * src/vmsgetargs.c, src/build.com, src/bison.cld, src/vmshlp.mar:
+       Remove.
+       * doc/bison.texinfo (VMS Invocation): Remove.
+
+2002-11-09  Akim Demaille  <address@hidden>
+
        * src/struniq.h, src/struniq.c (struniq_t): Is const.
        (STRUNIQ_EQ, struniq_assert, struniq_assert_p): New.
 
Index: 0.5/doc/bison.texinfo
--- 0.5/doc/bison.texinfo Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/23_bison.texi 1.1 644)
+++ 0.5(w)/doc/bison.texinfo Sat, 09 Nov 2002 10:43:35 +0100 akim 
(bison/23_bison.texi 1.1 644)
@@ -268,7 +268,6 @@
 * Bison Options::     All the options described in detail,
                         in alphabetical order by short options.
 * Option Cross Key::  Alphabetical list of long options.
-* VMS Invocation::    Bison command syntax on @acronym{VMS}.
 
 Frequently Asked Questions
 
@@ -5906,7 +5905,6 @@
 * Bison Options::     All the options described in detail,
                         in alphabetical order by short options.
 * Option Cross Key::  Alphabetical list of long options.
-* VMS Invocation::    Bison command syntax on @acronym{VMS}.
 @end menu
 
 @node Bison Options
@@ -6098,34 +6096,6 @@
 @end example
 @end ifinfo
 
address@hidden VMS Invocation
address@hidden Invoking Bison under @acronym{VMS}
address@hidden invoking Bison under @acronym{VMS}
address@hidden @acronym{VMS}
-
-The command line syntax for Bison on @acronym{VMS} is a variant of the usual
-Bison command syntax---adapted to fit @acronym{VMS} conventions.
-
-To find the @acronym{VMS} equivalent for any Bison option, start with the long
-option, and substitute a @samp{/} for the leading @samp{--}, and
-substitute a @samp{_} for each @samp{-} in the name of the long option.
-For example, the following invocation under @acronym{VMS}:
-
address@hidden
-bison /debug/name_prefix=bar foo.y
address@hidden example
-
address@hidden
-is equivalent to the following command under @acronym{POSIX}.
-
address@hidden
-bison --debug --name-prefix=bar foo.y
address@hidden example
-
-The @acronym{VMS} file system does not permit filenames such as
address@hidden  In the above example, the output file
-would instead be named @file{foo_tab.c}.
-
 @c ================================================= Invoking Bison
 
 @node FAQ
Index: 0.5/doc/version.texi
--- 0.5/doc/version.texi Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/24_version.te 1.1 644)
+++ 0.5(w)/doc/version.texi Sat, 09 Nov 2002 11:01:41 +0100 akim 
(bison/24_version.te 1.1 644)
@@ -1,4 +1,4 @@
address@hidden UPDATED 7 November 2002
address@hidden UPDATED 9 November 2002
 @set UPDATED-MONTH November 2002
 @set EDITION 1.75b
 @set VERSION 1.75b
Index: 0.5/src/output.c
--- 0.5/src/output.c Sat, 09 Nov 2002 10:36:21 +0100 akim (bison/b/8_output.c 
1.2 644)
+++ 0.5(w)/src/output.c Sat, 09 Nov 2002 10:39:21 +0100 akim 
(bison/b/8_output.c 1.2 644)
@@ -574,8 +574,7 @@
   MUSCLE_INSERT_INT ("pure", pure_parser);
   MUSCLE_INSERT_INT ("synclines_flag", !no_lines_flag);
 
-  /* FIXME: This is wrong: the muscles should decide whether they hold
-     a copy or not, but the situation is too obscure currently.  */
+  /* File names.  */
   MUSCLE_INSERT_STRING ("prefix", spec_name_prefix ? spec_name_prefix : "yy");
   MUSCLE_INSERT_STRING ("output_infix", output_infix ? output_infix : "");
   MUSCLE_INSERT_STRING ("output_prefix", short_base_name);
Index: 0.5/src/getargs.c
--- 0.5/src/getargs.c Sat, 09 Nov 2002 10:36:21 +0100 akim 
(bison/b/21_getargs.c 1.2 644)
+++ 0.5(w)/src/getargs.c Sat, 09 Nov 2002 10:57:50 +0100 akim 
(bison/b/21_getargs.c 1.2 644)
@@ -284,18 +284,6 @@
   /* Hidden. */
   { "trace",         optional_argument,   0,     'T' },
 
-  /* FIXME: semantic parsers will output an `include' of an
-     output file: be sure that the naem included is indeed the name of
-     the output file.  */ /* FIXME Should we activate this options ?
-     */
-  { "output",      required_argument,     0, 'o' },
-  { "file-prefix", required_argument,     0, 'b' },
-  { "name-prefix", required_argument,     0, 'p' },
-
-  /*
-   * Percent and command line declarations.
-   */
-
   /* Output.  */
   { "defines",     optional_argument,   0,   'd' },
 
Index: 0.5/src/Makefile.am
--- 0.5/src/Makefile.am Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/b/40_Makefile.a 1.1 644)
+++ 0.5(w)/src/Makefile.am Sat, 09 Nov 2002 10:42:19 +0100 akim 
(bison/b/40_Makefile.a 1.1 644)
@@ -64,9 +64,5 @@
 
 BUILT_SOURCES = scan-skel.c scan-gram.c parse-gram.c parse-gram.h
 
-EXTRA_bison_SOURCES = vmsgetargs.c
-
-EXTRA_DIST = build.com bison.cld vmshlp.mar
-
 echo:
        echo $(bison_SOURCES) $(noinst_HEADERS)
Index: 0.5(w)/src/vmshlp.mar
--- 0.5/src/vmshlp.mar Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/29_vmshlp.mar 1.1 644)
+++ 0.5(w)/src/vmshlp.mar Sat, 09 Nov 2002 11:05:28 +0100 akim ()
@@ -1,42 +0,0 @@
-;/* Macro help routines for the BISON/VMS program
-;   Gabor Karsai, Vanderbilt University
-;
-;BISON is distributed in the hope that it will be useful, but WITHOUT ANY
-;WARRANTY.  No author or distributor accepts responsibility to anyone
-;for the consequences of using it or for whether it serves any
-;particular purpose or works at all, unless he says so in writing.
-;Refer to the BISON General Public License for full details.
-;
-;Everyone is granted permission to copy, modify and redistribute BISON,
-;but only under the conditions described in the BISON General Public
-;License.  A copy of this license is supposed to have been given to you
-;along with BISON so you can know your rights and responsibilities.  It
-;should be in a file named COPYING.  Among other things, the copyright
-;notice and this notice must be preserved on all copies.
-;
-; In other words, you are welcome to use, share and improve this program.
-; You are forbidden to forbid anyone else to use, share and improve
-; what you give them.   Help stamp out software-hoarding!  */
-;
-        .psect  vmshlp  pic,usr,rel,ovr,shr,long,exe,nowrt
-
-alloca::
-        .word   0
-        subl2   ^X4(ap),sp
-        movl    ^X10(fp),r1
-        movq    ^X8(fp),ap
-        bicl2   #03,sp
-        addl2   #^X1c,sp
-        movl    sp,r0
-        jmp     (r1)
-
-bcopy::
-        .word   ^X0e00
-        movl    ^X04(ap),r11
-        movl    ^X08(ap),r10
-        movl    ^X0c(ap),r9
-        brb     1$
-2$:     movb    (r10)+,(r11)+
-1$:     sobgeq  r9,2$
-        ret
-        .end
Index: 0.5(w)/src/bison.cld
--- 0.5/src/bison.cld Fri, 08 Nov 2002 16:19:16 +0100 akim (bison/30_bison.cld 
1.1 644)
+++ 0.5(w)/src/bison.cld Sat, 09 Nov 2002 11:05:28 +0100 akim ()
@@ -1,21 +0,0 @@
-!
-!      VMS BISON command definition file
-!
-DEFINE VERB    BISON
-       IMAGE   GNU_BISON:[000000]BISON
-
-       PARAMETER       P1,Label=BISON$INFILE,Prompt="File"
-                               value(required,type=$infile)
-       QUALIFIER       VERBOSE,Label=BISON$VERBOSE
-       QUALIFIER       DEFINES,Label=BISON$DEFINES
-       QUALIFIER       FIXED_OUTFILES,Label=BISON$FIXED_OUTFILES
-       QUALIFIER       NOPARSER,Label=BISON$NOPARSER
-       QUALIFIER       RAW,LABEL=BISON$RAW
-       QUALIFIER       TOKEN_TABLE,LABEL=BISON$TOKEN_TABLE
-       qualifier       nolines,Label=BISON$NOLINES
-       qualifier       debug,Label=BISON$DEBUG
-       qualifier       output,value(type=$outfile),Label=BISON$OUTPUT
-       qualifier       version,label=BISON$VERSION
-       qualifier       yacc,label=BISON$YACC
-       qualifier       file_prefix,value(type=$outfile),label=BISON$FILE_PREFIX
-       qualifier       name_prefix,value(type=$outfile),LABEL=BISON$NAME_PREFIX
Index: 0.5(w)/src/build.com
--- 0.5/src/build.com Fri, 08 Nov 2002 16:19:16 +0100 akim (bison/31_build.com 
1.1 644)
+++ 0.5(w)/src/build.com Sat, 09 Nov 2002 11:05:28 +0100 akim ()
@@ -1,83 +0,0 @@
-$! Set the def dir to proper place for use in batch. Works for interactive too.
-$flnm = f$enviroment("PROCEDURE")     ! get current procedure name
-$set default 'f$parse(flnm,,,"DEVICE")''f$parse(flnm,,,"DIRECTORY")'
-$!
-$! This command procedure compiles and links BISON for VMS.
-$! BISON has been tested with VAXC version 2.3 and VMS version 4.5
-$! and on VMS 4.5 with GCC 1.12.
-$!
-$! Bj|rn Larsen                        address@hidden
-$! With some contributions by Gabor Karsai, 
-$!  address@hidden
-$! All merged and cleaned by RMS.
-$!
-$! Adapted for both VAX-11 "C" and VMS/GCC compilation by
-$! David L. Kashtan            kashtan.iu.ai.sri.com
-$!
-$! First we try to sense which C compiler we have available.  Sensing logic
-$! borrowed from Emacs.
-$!
-$set noon              !do not bomb if an error occurs.
-$assign nla0: sys$output
-$assign nla0: sys$error  !so we do not get an error message about this.
-$cc nla0:compiler_check.c
-$if $status.eq.%x38090 then goto try_gcc
-$ CC :== CC
-$ cc_options:="/NOLIST/define=(""index=strchr"",""rindex=strrchr"")"
-$ extra_linker_files:="VMSHLP,"
-$goto have_compiler
-$!
-$try_gcc:
-$gcc nla0:compiler_check.c
-$if $status.eq.%x38090 then goto whoops
-$ CC :== GCC
-$ cc_options:="/DEBUG"
-$ extra_linker_files:="GNU_CC:[000000]GCCLIB/LIB,"
-$goto have_compiler
-$!
-$whoops:
-$write sys$output "You must have a C compiler to build BISON.  Sorry."
-$deassign sys$output
-$deassign sys$error
-$exit %x38090
-$!
-$!
-$have_compiler:
-$deassign sys$output
-$deassign sys$error
-$set on
-$if f$search("compiler_check.obj").nes."" then dele/nolog compiler_check.obj;
-$write sys$output "Building BISON with the ''cc' compiler."
-$!
-$!     Do the compilation (compiler type is all set up)
-$!
-$ Compile:
-$ if "''p1'" .eqs. "LINK" then goto Link
-$ 'CC' 'cc_options' files.c
-$ 'CC' 'cc_options' LR0.C
-$ 'CC' 'cc_options' ALLOCATE.C
-$ 'CC' 'cc_options' CLOSURE.C
-$ 'CC' 'cc_options' CONFLICTS.C
-$ 'CC' 'cc_options' DERIVES.C
-$ 'CC' 'cc_options' VMSGETARGS.C
-$ 'CC' 'cc_options' GRAM.C
-$ 'CC' 'cc_options' LALR.C
-$ 'CC' 'cc_options' LEX.C
-$ 'CC' 'cc_options' MAIN.C
-$ 'CC' 'cc_options' NULLABLE.C
-$ 'CC' 'cc_options' OUTPUT.C
-$ 'CC' 'cc_options' PRINT.C
-$ 'CC' 'cc_options' READER.C
-$ 'CC' 'cc_options' REDUCE.C
-$ 'CC' 'cc_options' SYMTAB.C
-$ 'CC' 'cc_options' WARSHALL.C
-$ 'CC' 'cc_options' VERSION.C
-$ if "''CC'" .eqs. "CC" then macro vmshlp.mar
-$ Link:
-$ link/exec=bison main,LR0,allocate,closure,conflicts,derives,files,-
-vmsgetargs,gram,lalr,lex,nullable,output,print,reader,reduce,symtab,warshall,-
-version,'extra_linker_files'sys$library:vaxcrtl/lib
-$!
-$! Generate bison.hlp (for online help).
-$!
-$runoff bison.rnh
Index: 0.5(w)/src/vmsgetargs.c
--- 0.5/src/vmsgetargs.c Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/32_vmsgetargs 1.1 644)
+++ 0.5(w)/src/vmsgetargs.c Sat, 09 Nov 2002 11:05:28 +0100 akim ()
@@ -1,172 +0,0 @@
-/* VMS version of getargs; Uses DCL command parsing.
-   Copyright 1989, 1992 Free Software Foundation, Inc.
-
-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 2, 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, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA.  */
-
-
-#include <ctype.h>
-#include <stdio.h>
-#include "files.h"
-
-/*
- *     VMS version of getargs: Uses DCL command parsing
- *             (argc and argv are ignored)
- */
-int verbose_flag;
-int defines_flag;
-int debug_flag;
-int no_lines_flag;
-extern int no_parser_flag;
-extern int token_table_flag;
-extern int raw_flag;
-extern int yacc_flag;
-extern char * version_string;
-
-getargs (int argc, char *argv[])
-{
-  register char *cp;
-  static char Input_File[256];
-  static char output_spec[256], name_prefix_spec[256], file_prefix_spec[256];
-  extern char *infile;
-
-  verbose_flag = 0;
-  defines_flag = 0;
-  debug_flag = 0;
-  yacc_flag = 0;
-  no_lines_flag = 0;
-  no_parser_flag = 0;
-  token_table_flag = 0;
-  raw_flag = 0;
-  /*
-   *   Check for /VERBOSE qualifier
-   */
-  if (cli_present("BISON$VERBOSE")) verbose_flag = 1;
-  /*
-   *   Check for /DEFINES qualifier
-   */
-  if (cli_present("BISON$DEFINES")) defines_flag = 1;
-  /*
-   *   Check for /FIXED_OUTFILES qualifier
-   */
-  if (cli_present("BISON$FIXED_OUTFILES")) yacc_flag = 1;
-  if (cli_present("BISON$YACC")) yacc_flag = 1;
-  /*
-   *   Check for /VERSION qualifier
-   */
-  if (cli_present("BISON$VERSION")) printf("%s",version_string);
-  /*
-   *   Check for /NOLINES qualifier
-   */
-  if (cli_present("BISON$NOLINES")) no_lines_flag = 1;
-  /*
-   *   Check for /NOPARSER qualifier
-   */
-  if (cli_present("BISON$NOPARSER")) no_parser_flag = 1;
-  /*
-   *   Check for /RAW qualifier
-   */
-  if (cli_present("BISON$RAW")) raw_flag = 1;
-  /*
-   *   Check for /TOKEN_TABLE qualifier
-   */
-  if (cli_present("BISON$TOKEN_TABLE")) token_table_flag = 1;
-  /*
-   *   Check for /DEBUG qualifier
-   */
-  if (cli_present("BISON$DEBUG")) debug_flag = 1;
-  /*
-   *   Get the filename
-   */
-  cli_get_value("BISON$INFILE", Input_File, sizeof(Input_File));
-  /*
-   *   Lowercaseify the input filename
-   */
-  cp = Input_File;
-  while(*cp)
-    {
-      if (isupper(*cp)) *cp = tolower(*cp);
-      cp++;
-    }
-  infile = Input_File;
-  /*
-   *   Get the output file
-   */
-  if (cli_present("BISON$OUTPUT"))
-    {
-      cli_get_value("BISON$OUTPUT", output_spec, sizeof(output_spec));
-      for (cp = spec_outfile = output_spec; *cp; cp++)
-       if (isupper(*cp))
-         *cp = tolower(*cp);
-    }
-  /*
-   *   Get the output file
-   */
-  if (cli_present("BISON$FILE_PREFIX"))
-    {
-      cli_get_value("BISON$FILE_PREFIX", file_prefix_spec,
-                    sizeof(file_prefix_spec));
-      for (cp = spec_file_prefix = file_prefix_spec; *cp; cp++)
-       if (isupper(*cp))
-         *cp = tolower(*cp);
-    }
-  /*
-   *   Get the output file
-   */
-  if (cli_present("BISON$NAME_PREFIX"))
-    {
-      cli_get_value("BISON$NAME_PREFIX", name_prefix_spec,
-                    sizeof(name_prefix_spec));
-      for (cp = spec_name_prefix = name_prefix_spec; *cp; cp++)
-       if (isupper(*cp))
-         *cp = tolower(*cp);
-    }
-}
-
-/************          DCL PARSING ROUTINES            **********/
-
-/*
- *     See if "NAME" is present
- */
-int
-cli_present (char *Name)
-{
-  struct {int Size; char *Ptr;} Descr;
-
-  Descr.Ptr = Name;
-  Descr.Size = strlen(Name);
-  return (cli$present(&Descr) & 1) ? 1 : 0;
-}
-
-/*
- *     Get value of "NAME"
- */
-int
-cli_get_value (char *Name, char *Buffer, int Size)
-{
-  struct {int Size; char *Ptr;} Descr1,Descr2;
-
-  Descr1.Ptr = Name;
-  Descr1.Size = strlen(Name);
-  Descr2.Ptr = Buffer;
-  Descr2.Size = Size-1;
-  if (cli$get_value(&Descr1,&Descr2,&Descr2.Size) & 1) {
-    Buffer[Descr2.Size] = 0;
-    return 1;
-  }
-  return 0;
-}
Index: 0.7/ChangeLog
--- 0.7/ChangeLog Sat, 09 Nov 2002 16:45:25 +0100 akim (bison/d/40_ChangeLog 
1.5 644)
+++ 0.7(w)/ChangeLog Sat, 09 Nov 2002 16:47:15 +0100 akim (bison/d/40_ChangeLog 
1.5 644)
@@ -1,6 +1,10 @@
 2002-11-09  Akim Demaille  <address@hidden>
 
+       * doc/bison.rnh: Remove.
+
+2002-11-09  Akim Demaille  <address@hidden>
+
        * src/parse-gram.y (input): Don't append the epilogue here,
        (epilogue.pot): do it here, and free the scanner's obstack.
        * src/reader.c (get_merge_function): The type defaults to the
Index: 0.7/doc/Makefile.am
--- 0.7/doc/Makefile.am Fri, 08 Nov 2002 16:19:16 +0100 akim 
(bison/26_Makefile.a 1.1 644)
+++ 0.7(w)/doc/Makefile.am Sat, 09 Nov 2002 16:46:14 +0100 akim 
(bison/26_Makefile.a 1.1 644)
@@ -4,7 +4,7 @@
 man_MANS = bison.1
 bison_TEXINFOS = gpl.texi fdl.texi
 
-EXTRA_DIST = FAQ bison.1 bison.rnh refcard.tex
+EXTRA_DIST = FAQ bison.1 refcard.tex
 
 CLEANFILES = refcard.dvi refcard.log refcard.ps
 
Index: 0.7(w)/doc/bison.rnh
--- 0.7/doc/bison.rnh Fri, 08 Nov 2002 16:19:16 +0100 akim (bison/20_bison.rnh 
1.1 644)
+++ 0.7(w)/doc/bison.rnh Sat, 09 Nov 2002 16:49:32 +0100 akim ()
@@ -1,192 +0,0 @@
-.!
-.!     RUNOFF source file for BISON.HLP 
-.!
-.!     This is a RUNOFF input file which will produce a VMS help file
-.!     for the VMS HELP library.
-.!
-.!     Eric Youngdale and Wilfred J. Hansen (address@hidden).
-.!
-.literal
-.end literal
-.no paging
-.no flags all
-.right margin 70
-.left margin 1
-
-.indent -1
-1 BISON
-.skip
- The BISON command invokes the GNU BISON parser generator.
-.skip
-.literal
-      BISON file-spec
-.end literal
-.skip
-.indent -1
-2 Parameters
-.skip
- file-spec
-.skip
-Here file-spec is the grammar file name, which usually ends in
-.y.  The parser file's name is made by replacing the .y
-with _tab.c.  Thus, the command bison foo.y yields
-foo_tab.c.
-
-.skip
-.indent -1
-2 Qualifiers
-.skip
- The following is the list of available qualifiers for BISON:
-.literal
-       /DEBUG
-       /DEFINES
-       /FILE_PREFIX=prefix
-       /FIXED_OUTFILES
-       /NAME_PREFIX=prefix
-       /NOLINES
-       /NOPARSER
-       /OUTPUT=outfilefile
-       /RAW
-       /TOKEN_TABLE
-       /VERBOSE
-       /VERSION
-       /YACC
-.end literal
-.skip
-.indent -1
-2 /DEBUG
-.skip
-In the parser file,
-define the macro YYDEBUG to 1 if it is not already defined,
-so that the debugging facilities are compiled.
-.skip
-.indent -1
-2 /DEFINES
-.skip
-Write an extra output file containing macro definitions for the token
-type names defined in the grammar and the semantic value type
-YYSTYPE, as well as a extern variable declarations.
-.skip
-If the parser output file is named "name.c" then this file
-is named "name.h".
-.skip
-This output file is essential if you wish to put the definition of
-yylex in a separate source file, because yylex needs to
-be able to refer to token type codes and the variable
-yylval.
-.skip
-.indent -1
-2 /FILE_PREFIX
-.skip
-.literal
-  /FILIE_PREFIX=prefix
-.end literal
-.skip
-       Specify a prefix to use for all Bison output file names.  The names are
-chosen as if the input file were named prefix.c
-
-.skip
-.indent -1
-2 /FIXED_OUTFILES
-.skip
-Equivalent to /OUTPUT=y_tab.c; the parser output file is called
-y_tab.c, and the other outputs are called y.output and
-y_tab.h.  The purpose of this switch is to imitate Yacc's output
-file name conventions.  The /YACC qualifier is functionally equivalent
-to /FIXED_OUTFILES.  The following command definition will
-work as a substitute for Yacc:
-
-.literal
-$YACC:==BISON/FIXED_OUTFILES
-.end literal
-.skip
-.indent -1
-2 /NAME_PREFIX
-.skip
-.literal
-  /NAME_PREFIX=prefix
-.end literal
-.skip
-Rename the external symbols used in the parser so that they start with
-"prefix" instead of "yy".  The precise list of symbols renamed
-is yyparse, yylex, yyerror, yylval, yychar and yydebug.
-
-For example, if you use /NAME_PREFIX="c", the names become cparse,
-clex, and so on.
-
-.skip
-.indent -1
-2 /NOLINES
-.skip
-Don't put any "#line" preprocessor commands in the parser file.
-Ordinarily Bison puts them in the parser file so that the C compiler
-and debuggers will associate errors with your source file, the
-grammar file.  This option causes them to associate errors with the
-parser file, treating it an independent source file in its own right.
-.skip
-.indent -1
-2 /NOPARSER
-.skip
-Do not generate the parser code into the output;  generate only
-declarations.  The generated name_tab.c file will have only 
-constant declarations.  In addition, a name.act file is
-generated containing a switch statement body containing all the
-translated actions. 
-.skip
-.indent -1
-2 /OUTPUT
-.skip
-.literal
-  /OUTPUT=outfile
-.end literal
-.skip
-Specify the name "outfile" for the parser file.
-.skip
-.indent -1
-2 /RAW
-.skip
-When this switch is specified, the .tab.h file defines the tokens to
-have the bison token numbers rather than the yacc compatible numbers.
-To employ this switch you would have to have your own parser.
-.skip
-.indent -1
-2 /TOKEN_TABLE
-.skip
-This switch causes the name_tab.c output to include a list of 
-token names in order by their token numbers;  this is defined in the array 
-yytname.  Also generated are #defines for YYNTOKENS, YYNNTS, YYNRULES,
-and YYNSTATES.
-
-.skip
-.indent -1
-2 /VERBOSE
-.skip
-Write an extra output file containing verbose descriptions of the
-parser states and what is done for each type of look-ahead token in
-that state.
-.skip
-This file also describes all the conflicts, both those resolved by
-operator precedence and the unresolved ones.
-.skip
-The file's name is made by removing _tab.c or .c from
-the parser output file name, and adding .output instead.
-.skip
-Therefore, if the input file is foo.y, then the parser file is
-called foo_tab.c by default.  As a consequence, the verbose
-output file is called foo.output.
-.skip
-.indent -1
-2 /VERSION
-.skip
-Print the version number of Bison.
-
-.skip
-.indent -1
-2 /YACC
-.skip
-See /FIXED_OUTFILES.
-.skip
-.indent -1
-
-
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]