ecpg: major cleanup, simplification, and documentation of parse.pl.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Oct 2024 17:37:33 +0000 (13:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Oct 2024 17:37:33 +0000 (13:37 -0400)
commit6b005499447512abfa1e4add87dcf3e2859c4f9e
tree626f886abd13a641d92f48c48011525a25ef62d9
parent293fd24425b59b9ac3386448c682c1f6c81fbbc8
ecpg: major cleanup, simplification, and documentation of parse.pl.

Remove a lot of cruft, clean up and document what's left.
This produces the same preproc.y output as before, except for
fewer blank lines.  (It's not like we're making any attempt to
match the layout of gram.y, so I removed the one bit of logic
that seemed to have that in mind.)

Discussion: https://postgr.es/m/2011420.1713493114@sss.pgh.pa.us
src/interfaces/ecpg/preproc/parse.pl