Is there a guidebook, any guidelines for writing grammar in Postgres, or any suggestions to keep in mind?
Do we have a set of guidelines to write production rules in gram.y (for the Bison Parser Generator) to make the grammar conflict-free and extendible in the future?