/[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.113 by eggert, Wed Oct 1 21:33:23 2003 UTC revision 1.114 by eggert, Sun Oct 5 06:46:53 2003 UTC
# Line 2797  Actions, ,Actions in Mid-Rule}). Line 2797  Actions, ,Actions in Mid-Rule}).
2797  The C code in an action can refer to the semantic values of the components  The C code in an action can refer to the semantic values of the components
2798  matched by the rule with the construct @code{$@var{n}}, which stands for  matched by the rule with the construct @code{$@var{n}}, which stands for
2799  the value of the @var{n}th component.  The semantic value for the grouping  the value of the @var{n}th component.  The semantic value for the grouping
2800  being constructed is @code{$$}.  (Bison translates both of these constructs  being constructed is @code{$$}.  Bison translates both of these
2801  into array element references when it copies the actions into the parser  constructs into expressions of the appropriate type when it copies the
2802  file.)  actions into the parser file.  @code{$$} is translated to a modifiable
2803    lvalue, so it can be assigned to.
2804    
2805  Here is a typical example:  Here is a typical example:
2806    

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

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