/[bison]/bison/doc/bison.texinfo
ViewVC logotype

Diff of /bison/doc/bison.texinfo

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.114 by eggert, Sun Oct 5 06:46:53 2003 UTC revision 1.115 by eggert, Sun Oct 5 07:34:36 2003 UTC
# Line 16  Line 16 
16  @c @clear shorttitlepage-enabled  @c @clear shorttitlepage-enabled
17  @c @set shorttitlepage-enabled  @c @set shorttitlepage-enabled
18    
19    @c Set following if you want to document %default-prec and %no-default-prec.
20    @c This feature is experimental and may change in future Bison versions.
21    @c @set defaultprec
22    
23  @c ISPELL CHECK: done, 14 Jan 1993 --bob  @c ISPELL CHECK: done, 14 Jan 1993 --bob
24    
25  @c Check COPYRIGHT dates.  should be updated in the titlepage, ifinfo  @c Check COPYRIGHT dates.  should be updated in the titlepage, ifinfo
# Line 3684  Declare a terminal symbol (token type na Line 3688  Declare a terminal symbol (token type na
3688  Using it in a way that would be associative is a syntax error.  Using it in a way that would be associative is a syntax error.
3689  @end deffn  @end deffn
3690    
3691    @ifset defaultprec
3692  @deffn {Directive} %default-prec  @deffn {Directive} %default-prec
3693  Assign a precedence to rules lacking an explicit @code{%prec} modifier  Assign a precedence to rules lacking an explicit @code{%prec} modifier
3694  (@pxref{Contextual Precedence, ,Context-Dependent Precedence}).  (@pxref{Contextual Precedence, ,Context-Dependent Precedence}).
3695  @end deffn  @end deffn
3696    @end ifset
3697    
3698  @deffn {Directive} %type  @deffn {Directive} %type
3699  Declare the type of semantic values for a nonterminal symbol  Declare the type of semantic values for a nonterminal symbol
# Line 3759  and so on.  @xref{Multiple Parsers, ,Mul Line 3765  and so on.  @xref{Multiple Parsers, ,Mul
3765  Program}.  Program}.
3766  @end deffn  @end deffn
3767    
3768    @ifset defaultprec
3769  @deffn {Directive} %no-default-prec  @deffn {Directive} %no-default-prec
3770  Do not assign a precedence to rules lacking an explicit @code{%prec}  Do not assign a precedence to rules lacking an explicit @code{%prec}
3771  modifier (@pxref{Contextual Precedence, ,Context-Dependent  modifier (@pxref{Contextual Precedence, ,Context-Dependent
3772  Precedence}).  Precedence}).
3773  @end deffn  @end deffn
3774    @end ifset
3775    
3776  @deffn {Directive} %no-parser  @deffn {Directive} %no-parser
3777  Do not include any C code in the parser file; generate tables only.  The  Do not include any C code in the parser file; generate tables only.  The
# Line 4863  exp:    @dots{} Line 4871  exp:    @dots{}
4871  @end group  @end group
4872  @end example  @end example
4873    
4874    @ifset defaultprec
4875  If you forget to append @code{%prec UMINUS} to the rule for unary  If you forget to append @code{%prec UMINUS} to the rule for unary
4876  minus, Bison silently assumes that minus has its usual precedence.  minus, Bison silently assumes that minus has its usual precedence.
4877  This kind of problem can be tricky to debug, since one typically  This kind of problem can be tricky to debug, since one typically
# Line 4882  grammar, but it helps to protect against Line 4891  grammar, but it helps to protect against
4891    
4892  The effect of @code{%no-default-prec;} can be reversed by giving  The effect of @code{%no-default-prec;} can be reversed by giving
4893  @code{%default-prec;}, which is the default.  @code{%default-prec;}, which is the default.
4894    @end ifset
4895    
4896  @node Parser States  @node Parser States
4897  @section Parser States  @section Parser States
# Line 6814  parsing.  @xref{Parser Function, ,The Pa Line 6824  parsing.  @xref{Parser Function, ,The Pa
6824  Equip the parser for debugging.  @xref{Decl Summary}.  Equip the parser for debugging.  @xref{Decl Summary}.
6825  @end deffn  @end deffn
6826    
6827    @ifset defaultprec
6828  @deffn {Directive} %default-prec  @deffn {Directive} %default-prec
6829  Assign a precedence to rules that lack an explicit @samp{%prec}  Assign a precedence to rules that lack an explicit @samp{%prec}
6830  modifier.  @xref{Contextual Precedence, ,Context-Dependent  modifier.  @xref{Contextual Precedence, ,Context-Dependent
6831  Precedence}.  Precedence}.
6832  @end deffn  @end deffn
6833    @end ifset
6834    
6835  @deffn {Directive} %defines  @deffn {Directive} %defines
6836  Bison declaration to create a header file meant for the scanner.  Bison declaration to create a header file meant for the scanner.
# Line 6873  function is applied to the two semantic Line 6885  function is applied to the two semantic
6885  Bison declaration to rename the external symbols.  @xref{Decl Summary}.  Bison declaration to rename the external symbols.  @xref{Decl Summary}.
6886  @end deffn  @end deffn
6887    
6888    @ifset defaultprec
6889  @deffn {Directive} %no-default-prec  @deffn {Directive} %no-default-prec
6890  Do not assign a precedence to rules that lack an explicit @samp{%prec}  Do not assign a precedence to rules that lack an explicit @samp{%prec}
6891  modifier.  @xref{Contextual Precedence, ,Context-Dependent  modifier.  @xref{Contextual Precedence, ,Context-Dependent
6892  Precedence}.  Precedence}.
6893  @end deffn  @end deffn
6894    @end ifset
6895    
6896  @deffn {Directive} %no-lines  @deffn {Directive} %no-lines
6897  Bison declaration to avoid generating @code{#line} directives in the  Bison declaration to avoid generating @code{#line} directives in the

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26