]> granicus.if.org Git - postgresql/commit
doc: Generate keywords table automatically
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 7 May 2019 13:29:39 +0000 (15:29 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 7 May 2019 13:29:39 +0000 (15:29 +0200)
commitb753bc0c84e51c200ec7de6cefb6f689d13fef62
tree63b98b25fb7ed01cce100941d05b6278cedffef5
parent7db0cde6b58eef2ba0c70437324cbc7622230320
doc: Generate keywords table automatically

The SQL keywords table in the documentation had until now been
generated by some ad hoc scripting outside the source tree once for
each major release.  This changes it to an automated process.

We have the PostgreSQL keywords available in a parseable format in
parser/kwlist.h.  For the relevant SQL standard versions, keep the
keyword lists in new text files.  A new script
generate-keywords-table.pl pulls it all together and produces a
DocBook table.

The final output in the documentation should be identical after this
change.

Discussion: https://www.postgresql.org/message-id/flat/07daeadd-8c82-0d95-5e19-e350502cb749%402ndquadrant.com
19 files changed:
doc/src/sgml/.gitignore
doc/src/sgml/Makefile
doc/src/sgml/filelist.sgml
doc/src/sgml/generate-keywords-table.pl [new file with mode: 0644]
doc/src/sgml/keywords.sgml
doc/src/sgml/keywords/sql1992-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql1992-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-02-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-02-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-09-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-09-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-14-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2008-14-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-02-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-02-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-09-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-09-reserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-14-nonreserved.txt [new file with mode: 0644]
doc/src/sgml/keywords/sql2011-14-reserved.txt [new file with mode: 0644]