mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/getargs.h (raw_flag): Remove.
* src/getargs.c: Die on `-r'/`--raw'. * src/lex.c (parse_percent_token): Die on `%raw'. * src/reader.c (output_token_defines): Suppress call to `raw_flag'. * tests/calc.at: Suppress test with option `--raw'.
This commit is contained in:
33
doc/bison.1
33
doc/bison.1
@@ -32,10 +32,6 @@ bison \- GNU Project parser generator (yacc replacement)
|
||||
] [
|
||||
.BI \-\-name-prefix= prefix
|
||||
] [
|
||||
.B \-r
|
||||
] [
|
||||
.B \-\-raw
|
||||
] [
|
||||
.B \-t
|
||||
] [
|
||||
.B \-\-debug
|
||||
@@ -140,31 +136,20 @@ in a separate source file, because
|
||||
needs to be able to refer to token type codes and the variable
|
||||
.BR yylval .
|
||||
.TP
|
||||
.B \-r
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B \-\-raw
|
||||
The token numbers in the \fIname\fB.h\fR file are usually the Yacc compatible
|
||||
translations. If this switch is specified, Bison token numbers
|
||||
are output instead. (Yacc numbers start at 257 except for single character
|
||||
tokens; Bison assigns token numbers sequentially for all tokens
|
||||
starting at 3.)
|
||||
.TP
|
||||
.B \-k
|
||||
.br
|
||||
.ns
|
||||
.TP
|
||||
.B \-\-token-table
|
||||
This switch causes the \fIname\fB.tab.c\fR output to include a list of
|
||||
token names in order by their token numbers; this is defined in the array
|
||||
This switch causes the \fIname\fB.tab.c\fR output to include a list of
|
||||
token names in order by their token numbers; this is defined in the array
|
||||
.IR yytname .
|
||||
Also generated
|
||||
are #defines for
|
||||
Also generated
|
||||
are #defines for
|
||||
.IR YYNTOKENS ,
|
||||
.IR YYNNTS ,
|
||||
.IR YYNRULES ,
|
||||
and
|
||||
and
|
||||
.IR YYNSTATES .
|
||||
.TP
|
||||
.B \-l
|
||||
@@ -188,10 +173,10 @@ parser file, treating it an independent source file in its own right.
|
||||
.TP
|
||||
.B \-\-no-parser
|
||||
Do not generate the parser code into the output; generate only
|
||||
declarations. The generated \fIname\fB.tab.c\fR file will have only
|
||||
declarations. The generated \fIname\fB.tab.c\fR file will have only
|
||||
constant declarations. In addition, a \fIname\fB.act\fR file is
|
||||
generated containing a switch statement body containing all the
|
||||
translated actions.
|
||||
translated actions.
|
||||
.TP
|
||||
.BI \-o " outfile"
|
||||
.br
|
||||
@@ -224,7 +209,7 @@ The precise list of symbols renamed is
|
||||
.BR yylex ,
|
||||
.BR yyerror ,
|
||||
.BR yylval ,
|
||||
.BR yychar ,
|
||||
.BR yychar ,
|
||||
and
|
||||
.BR yydebug .
|
||||
.sp
|
||||
@@ -241,7 +226,7 @@ and so on.
|
||||
.TP
|
||||
.B \-\-debug
|
||||
Output a definition of the macro
|
||||
.B YYDEBUG
|
||||
.B YYDEBUG
|
||||
into the parser file,
|
||||
so that the debugging facilities are compiled.
|
||||
.TP
|
||||
|
||||
197
doc/bison.info
197
doc/bison.info
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
@@ -29,105 +30,105 @@ instead of in the original English.
|
||||
|
||||
|
||||
Indirect:
|
||||
bison.info-1: 1285
|
||||
bison.info-2: 50255
|
||||
bison.info-3: 98216
|
||||
bison.info-4: 147733
|
||||
bison.info-5: 192266
|
||||
bison.info-1: 1306
|
||||
bison.info-2: 50276
|
||||
bison.info-3: 98237
|
||||
bison.info-4: 147410
|
||||
bison.info-5: 191643
|
||||
|
||||
Tag Table:
|
||||
(Indirect)
|
||||
Node: Top1285
|
||||
Node: Introduction8521
|
||||
Node: Conditions9796
|
||||
Node: Copying11260
|
||||
Node: Concepts30452
|
||||
Node: Language and Grammar31485
|
||||
Node: Grammar in Bison36501
|
||||
Node: Semantic Values38425
|
||||
Node: Semantic Actions40526
|
||||
Node: Bison Parser41709
|
||||
Node: Stages44019
|
||||
Node: Grammar Layout45302
|
||||
Node: Examples46559
|
||||
Node: RPN Calc47694
|
||||
Node: Rpcalc Decls48668
|
||||
Node: Rpcalc Rules50255
|
||||
Node: Rpcalc Input52055
|
||||
Node: Rpcalc Line53516
|
||||
Node: Rpcalc Expr54631
|
||||
Node: Rpcalc Lexer56576
|
||||
Node: Rpcalc Main59148
|
||||
Node: Rpcalc Error59546
|
||||
Node: Rpcalc Gen60554
|
||||
Node: Rpcalc Compile61703
|
||||
Node: Infix Calc62578
|
||||
Node: Simple Error Recovery65285
|
||||
Node: Multi-function Calc67171
|
||||
Node: Mfcalc Decl68737
|
||||
Node: Mfcalc Rules70760
|
||||
Node: Mfcalc Symtab72140
|
||||
Node: Exercises78513
|
||||
Node: Grammar File79019
|
||||
Node: Grammar Outline79787
|
||||
Node: C Declarations80521
|
||||
Node: Bison Declarations81101
|
||||
Node: Grammar Rules81513
|
||||
Node: C Code81973
|
||||
Node: Symbols82903
|
||||
Node: Rules87984
|
||||
Node: Recursion89623
|
||||
Node: Semantics91342
|
||||
Node: Value Type92439
|
||||
Node: Multiple Types93111
|
||||
Node: Actions94128
|
||||
Node: Action Types96913
|
||||
Node: Mid-Rule Actions98216
|
||||
Node: Declarations103785
|
||||
Node: Token Decl105104
|
||||
Node: Precedence Decl107117
|
||||
Node: Union Decl108668
|
||||
Node: Type Decl109512
|
||||
Node: Expect Decl110418
|
||||
Node: Start Decl111964
|
||||
Node: Pure Decl112342
|
||||
Node: Decl Summary114019
|
||||
Node: Multiple Parsers119746
|
||||
Node: Interface121240
|
||||
Node: Parser Function122112
|
||||
Node: Lexical122947
|
||||
Node: Calling Convention124353
|
||||
Node: Token Values127124
|
||||
Node: Token Positions128273
|
||||
Node: Pure Calling129165
|
||||
Node: Error Reporting132097
|
||||
Node: Action Features134219
|
||||
Node: Algorithm137880
|
||||
Node: Look-Ahead140173
|
||||
Node: Shift/Reduce142305
|
||||
Node: Precedence145217
|
||||
Node: Why Precedence145868
|
||||
Node: Using Precedence147733
|
||||
Node: Precedence Examples148701
|
||||
Node: How Precedence149402
|
||||
Node: Contextual Precedence150551
|
||||
Node: Parser States152342
|
||||
Node: Reduce/Reduce153585
|
||||
Node: Mystery Conflicts157146
|
||||
Node: Stack Overflow160532
|
||||
Node: Error Recovery161905
|
||||
Node: Context Dependency167041
|
||||
Node: Semantic Tokens167889
|
||||
Node: Lexical Tie-ins170906
|
||||
Node: Tie-in Recovery172454
|
||||
Node: Debugging174626
|
||||
Node: Invocation177927
|
||||
Node: Bison Options178657
|
||||
Node: Environment Variables182168
|
||||
Node: Option Cross Key183016
|
||||
Node: VMS Invocation183906
|
||||
Node: Table of Symbols184690
|
||||
Node: Glossary192266
|
||||
Node: Index198556
|
||||
Node: Top1306
|
||||
Node: Introduction8542
|
||||
Node: Conditions9817
|
||||
Node: Copying11281
|
||||
Node: Concepts30473
|
||||
Node: Language and Grammar31506
|
||||
Node: Grammar in Bison36522
|
||||
Node: Semantic Values38446
|
||||
Node: Semantic Actions40547
|
||||
Node: Bison Parser41730
|
||||
Node: Stages44040
|
||||
Node: Grammar Layout45323
|
||||
Node: Examples46580
|
||||
Node: RPN Calc47715
|
||||
Node: Rpcalc Decls48689
|
||||
Node: Rpcalc Rules50276
|
||||
Node: Rpcalc Input52076
|
||||
Node: Rpcalc Line53537
|
||||
Node: Rpcalc Expr54652
|
||||
Node: Rpcalc Lexer56597
|
||||
Node: Rpcalc Main59169
|
||||
Node: Rpcalc Error59567
|
||||
Node: Rpcalc Gen60575
|
||||
Node: Rpcalc Compile61724
|
||||
Node: Infix Calc62599
|
||||
Node: Simple Error Recovery65306
|
||||
Node: Multi-function Calc67192
|
||||
Node: Mfcalc Decl68758
|
||||
Node: Mfcalc Rules70781
|
||||
Node: Mfcalc Symtab72161
|
||||
Node: Exercises78534
|
||||
Node: Grammar File79040
|
||||
Node: Grammar Outline79808
|
||||
Node: C Declarations80542
|
||||
Node: Bison Declarations81122
|
||||
Node: Grammar Rules81534
|
||||
Node: C Code81994
|
||||
Node: Symbols82924
|
||||
Node: Rules88005
|
||||
Node: Recursion89644
|
||||
Node: Semantics91363
|
||||
Node: Value Type92460
|
||||
Node: Multiple Types93132
|
||||
Node: Actions94149
|
||||
Node: Action Types96934
|
||||
Node: Mid-Rule Actions98237
|
||||
Node: Declarations103806
|
||||
Node: Token Decl105125
|
||||
Node: Precedence Decl107138
|
||||
Node: Union Decl108689
|
||||
Node: Type Decl109533
|
||||
Node: Expect Decl110439
|
||||
Node: Start Decl111985
|
||||
Node: Pure Decl112363
|
||||
Node: Decl Summary114040
|
||||
Node: Multiple Parsers119423
|
||||
Node: Interface120917
|
||||
Node: Parser Function121789
|
||||
Node: Lexical122624
|
||||
Node: Calling Convention124030
|
||||
Node: Token Values126801
|
||||
Node: Token Positions127950
|
||||
Node: Pure Calling128842
|
||||
Node: Error Reporting131774
|
||||
Node: Action Features133896
|
||||
Node: Algorithm137557
|
||||
Node: Look-Ahead139850
|
||||
Node: Shift/Reduce141982
|
||||
Node: Precedence144894
|
||||
Node: Why Precedence145545
|
||||
Node: Using Precedence147410
|
||||
Node: Precedence Examples148378
|
||||
Node: How Precedence149079
|
||||
Node: Contextual Precedence150228
|
||||
Node: Parser States152019
|
||||
Node: Reduce/Reduce153262
|
||||
Node: Mystery Conflicts156823
|
||||
Node: Stack Overflow160209
|
||||
Node: Error Recovery161582
|
||||
Node: Context Dependency166718
|
||||
Node: Semantic Tokens167566
|
||||
Node: Lexical Tie-ins170583
|
||||
Node: Tie-in Recovery172131
|
||||
Node: Debugging174303
|
||||
Node: Invocation177604
|
||||
Node: Bison Options178334
|
||||
Node: Environment Variables181768
|
||||
Node: Option Cross Key182616
|
||||
Node: VMS Invocation183460
|
||||
Node: Table of Symbols184244
|
||||
Node: Glossary191643
|
||||
Node: Index197933
|
||||
|
||||
End Tag Table
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
@@ -530,13 +531,6 @@ Bison Declaration Summary
|
||||
called `foo.tab.c' by default. As a consequence, the verbose
|
||||
output file is called `foo.output'.
|
||||
|
||||
`%raw'
|
||||
The output file `NAME.h' normally defines the tokens with
|
||||
Yacc-compatible token numbers. If this option is specified, the
|
||||
internal Bison numbers are used instead. (Yacc-compatible numbers
|
||||
start at 257 except for single-character tokens; Bison assigns
|
||||
token numbers sequentially for all tokens starting at 3.)
|
||||
|
||||
`%token_table'
|
||||
Generate an array of token names in the parser file. The name of
|
||||
the array is `yytname'; `yytname[I]' is the name of the token
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
@@ -884,10 +885,6 @@ Tuning the parser:
|
||||
`--no-parser'
|
||||
Pretend that `%no_parser' was specified. *Note Decl Summary::.
|
||||
|
||||
`-r'
|
||||
`--raw'
|
||||
Pretend that `%raw' was specified. *Note Decl Summary::.
|
||||
|
||||
`-k'
|
||||
`--token-table'
|
||||
Pretend that `%token_table' was specified. *Note Decl Summary::.
|
||||
@@ -959,7 +956,6 @@ find the corresponding short option.
|
||||
--no-lines -l
|
||||
--no-parser -n
|
||||
--output-file=OUTFILE -o OUTFILE
|
||||
--raw -r
|
||||
--token-table -k
|
||||
--verbose -v
|
||||
--version -V
|
||||
@@ -1146,11 +1142,6 @@ Bison Symbols
|
||||
Bison declaration to request a pure (reentrant) parser. *Note A
|
||||
Pure (Reentrant) Parser: Pure Decl.
|
||||
|
||||
`%raw'
|
||||
Bison declaration to use Bison internal token code numbers in token
|
||||
tables instead of the usual Yacc-compatible token code numbers.
|
||||
*Note Decl Summary::.
|
||||
|
||||
`%right'
|
||||
Bison declaration to assign right associativity to token(s).
|
||||
*Note Operator Precedence: Precedence Decl.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
This is bison.info, produced by makeinfo version 4.0 from bison.texinfo.
|
||||
Ceci est le fichier Info bison.info, produit par Makeinfo version 4.0 à
|
||||
partir bison.texinfo.
|
||||
|
||||
START-INFO-DIR-ENTRY
|
||||
* bison: (bison). GNU Project parser generator (yacc replacement).
|
||||
|
||||
@@ -3258,13 +3258,6 @@ Therefore, if the input file is @file{foo.y}, then the parser file is
|
||||
called @file{foo.tab.c} by default. As a consequence, the verbose
|
||||
output file is called @file{foo.output}.@refill
|
||||
|
||||
@item %raw
|
||||
The output file @file{@var{name}.h} normally defines the tokens with
|
||||
Yacc-compatible token numbers. If this option is specified, the
|
||||
internal Bison numbers are used instead. (Yacc-compatible numbers start
|
||||
at 257 except for single-character tokens; Bison assigns token numbers
|
||||
sequentially for all tokens starting at 3.)
|
||||
|
||||
@item %token_table
|
||||
Generate an array of token names in the parser file. The name of the
|
||||
array is @code{yytname}; @code{yytname[@var{i}]} is the name of the
|
||||
@@ -5025,10 +5018,6 @@ parser file, treating it as an independent source file in its own right.
|
||||
@itemx --no-parser
|
||||
Pretend that @code{%no_parser} was specified. @xref{Decl Summary}.
|
||||
|
||||
@item -r
|
||||
@itemx --raw
|
||||
Pretend that @code{%raw} was specified. @xref{Decl Summary}.
|
||||
|
||||
@item -k
|
||||
@itemx --token-table
|
||||
Pretend that @code{%token_table} was specified. @xref{Decl Summary}.
|
||||
@@ -5108,7 +5097,6 @@ the corresponding short option.
|
||||
\line{ --no-lines \leaderfill -l}
|
||||
\line{ --no-parser \leaderfill -n}
|
||||
\line{ --output-file \leaderfill -o}
|
||||
\line{ --raw \leaderfill -r}
|
||||
\line{ --token-table \leaderfill -k}
|
||||
\line{ --verbose \leaderfill -v}
|
||||
\line{ --version \leaderfill -V}
|
||||
@@ -5127,7 +5115,6 @@ the corresponding short option.
|
||||
--no-lines -l
|
||||
--no-parser -n
|
||||
--output-file=@var{outfile} -o @var{outfile}
|
||||
--raw -r
|
||||
--token-table -k
|
||||
--verbose -v
|
||||
--version -V
|
||||
@@ -5315,11 +5302,6 @@ Bison declaration to assign a precedence to a specific rule.
|
||||
Bison declaration to request a pure (reentrant) parser.
|
||||
@xref{Pure Decl, ,A Pure (Reentrant) Parser}.
|
||||
|
||||
@item %raw
|
||||
Bison declaration to use Bison internal token code numbers in token
|
||||
tables instead of the usual Yacc-compatible token code numbers.
|
||||
@xref{Decl Summary}.
|
||||
|
||||
@item %right
|
||||
Bison declaration to assign right associativity to token(s).
|
||||
@xref{Precedence Decl, ,Operator Precedence}.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@set UPDATED 16 March 2001
|
||||
@set UPDATED 18 July 2001
|
||||
@set EDITION 1.28a
|
||||
@set VERSION 1.28a
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@set UPDATED 16 March 2001
|
||||
@set UPDATED 18 July 2001
|
||||
@set EDITION 1.28a
|
||||
@set VERSION 1.28a
|
||||
|
||||
Reference in New Issue
Block a user