]> git.saurik.com Git - bison.git/commit
Similar to the recently removed %before-header, add %code-top as the
authorJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 16 Oct 2006 05:25:36 +0000 (05:25 +0000)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Mon, 16 Oct 2006 05:25:36 +0000 (05:25 +0000)
commit2cbe6b7f8f268366877078c8256011e20a76c464
treed3e079503b11d93c4ed0045a8bf6d05b084500b7
parentf209868ed0a4a110243b9099cea8dc5be3bdf4a1
Similar to the recently removed %before-header, add %code-top as the
alternative to the pre-prologue.  Mentioned at
<http://lists.gnu.org/archive/html/bison-patches/2006-10/msg00063.html>.
Also, let the prologue alternatives appear in the grammar section.
* src/parse-gram.y (PERCENT_CODE_TOP): New token.
(prologue_declaration): Move the existing prologue alternatives to...
(grammar_declaration): ... here and add %code-top.
* src/scan-gram.l (PERCENT_CODE_TOP): New token.

Clean up and extend documentation for the prologue alternatives.
* NEWS (2.3a+): Describe prologue alternatives.
* doc/bison.texinfo (Prologue): Move discussion of prologue
alternatives to...
(Prologue Alternatives): ... this new section, and extend it to discuss
all 4 directives in detail.
(Bison Symbols): Clean up discussion of prologue alternatives and add
%code-top.
ChangeLog
NEWS
doc/bison.texinfo
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y
src/reader.c
src/scan-gram.l