summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2009-08-19 13:34:48 +0200
committerAkim Demaille <demaille@gostai.com>2009-08-19 13:36:22 +0200
commit8fbbeba2a4537cdbb2481f1fc69295ec2ad278d6 (patch)
tree03e339182725bef9be43ed6f02a532025e6dca2f /doc
parent1874a474b9312dd75dfa6066913fdc48cf890c94 (diff)
downloadbison-8fbbeba2a4537cdbb2481f1fc69295ec2ad278d6.tar.gz
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 d59e456dbf5d9747e2fe0c0539f2ec670ce6f9c4)
Diffstat (limited to 'doc')
-rw-r--r--doc/bison.texinfo11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/bison.texinfo b/doc/bison.texinfo
index 3c63a19a..f7999301 100644
--- a/doc/bison.texinfo
+++ b/doc/bison.texinfo
@@ -3804,8 +3804,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
@@ -10555,6 +10558,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