doc: %initial-action to initialize yylloc.

Reported by Bill Allombert.
	* doc/bison.texinfo: Set fill-column to 76.
	(Location Type): Document the use of %initial-action to initialize
	yylloc.

(cherry picked from commit d59e456dbf)
This commit is contained in:
Akim Demaille
2009-08-19 13:34:48 +02:00
parent 1874a474b9
commit 8fbbeba2a4
3 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2009-08-19 Akim Demaille <demaille@gostai.com>
doc: %initial-action to initialize yylloc.
Reported by Bill Allombert.
* doc/bison.texinfo: Set fill-column to 76.
(Location Type): Document the use of %initial-action to initialize
yylloc.
2009-08-18 Joel E. Denny <jdenny@clemson.edu> 2009-08-18 Joel E. Denny <jdenny@clemson.edu>
maint: update for gnulib's recent update-copyright changes maint: update for gnulib's recent update-copyright changes

1
THANKS
View File

@@ -14,6 +14,7 @@ Art Haas ahaas@neosoft.com
Baron Schwartz baron@sequent.org Baron Schwartz baron@sequent.org
Benoit Perrot benoit.perrot@epita.fr Benoit Perrot benoit.perrot@epita.fr
Bert Deknuydt Bert.Deknuydt@esat.kuleuven.ac.be Bert Deknuydt Bert.Deknuydt@esat.kuleuven.ac.be
Bill Allombert Bill.Allombert@math.u-bordeaux1.fr
Bob Rossi bob@brasko.net Bob Rossi bob@brasko.net
Brandon Lucia blucia@gmail.com Brandon Lucia blucia@gmail.com
Bruce Lilly blilly@erols.com Bruce Lilly blilly@erols.com

View File

@@ -3804,8 +3804,11 @@ typedef struct YYLTYPE
@} YYLTYPE; @} YYLTYPE;
@end example @end example
At the beginning of the parsing, Bison initializes all these fields to 1 When @code{YYLTYPE} is not defined, at the beginning of the parsing, Bison
for @code{yylloc}. initializes all these fields to 1 for @code{yylloc}. To initialize
@code{yylloc} with a custom location type (or to chose a different
initialization), use the @code{%initial-action} directive. @xref{Initial
Action Decl, , Performing Actions before Parsing}.
@node Actions and Locations @node Actions and Locations
@subsection Actions and Locations @subsection Actions and Locations
@@ -10555,6 +10558,10 @@ grammatically indivisible. The piece of text it represents is a token.
@bye @bye
@c Local Variables:
@c fill-column: 76
@c End:
@c LocalWords: texinfo setfilename settitle setchapternewpage finalout @c LocalWords: texinfo setfilename settitle setchapternewpage finalout
@c LocalWords: ifinfo smallbook shorttitlepage titlepage GPL FIXME iftex @c LocalWords: ifinfo smallbook shorttitlepage titlepage GPL FIXME iftex
@c LocalWords: akim fn cp syncodeindex vr tp synindex dircategory direntry @c LocalWords: akim fn cp syncodeindex vr tp synindex dircategory direntry