mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
@@ -3806,8 +3806,11 @@ typedef struct YYLTYPE
|
||||
@} YYLTYPE;
|
||||
@end example
|
||||
|
||||
At the beginning of the parsing, Bison initializes all these fields to 1
|
||||
for @code{yylloc}.
|
||||
When @code{YYLTYPE} is not defined, at the beginning of the parsing, Bison
|
||||
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
|
||||
@subsection Actions and Locations
|
||||
@@ -10806,6 +10809,10 @@ grammatically indivisible. The piece of text it represents is a token.
|
||||
|
||||
@bye
|
||||
|
||||
@c Local Variables:
|
||||
@c fill-column: 76
|
||||
@c End:
|
||||
|
||||
@c LocalWords: texinfo setfilename settitle setchapternewpage finalout
|
||||
@c LocalWords: ifinfo smallbook shorttitlepage titlepage GPL FIXME iftex
|
||||
@c LocalWords: akim fn cp syncodeindex vr tp synindex dircategory direntry
|
||||
|
||||
Reference in New Issue
Block a user