We could do something like this. Is this good?
I tried to merge WITH and WITHOUT with the precedence class immediately
above, but that failed: the main grammar compiles fine and no tests
fail, but ECPG does fail to compile the sqljson.pgc test, so there's
some problem there. Now, the ecpg grammar stuff *is* absolute black
magic to me, so I have no idea what to do about that.
(TBH I don't think the added comments really explain the problems fully.
That's most likely because I don't actually understand what the problems
are.)
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
Thou shalt study thy libraries and strive not to reinvent them without
cause, that thy code may be short and readable and thy days pleasant
and productive. (7th Commandment for C Programmers)