Hi, On Tue, Aug 01, 2023 at 07:36:36PM +0800, jacktby wrote: > <span style="font-family: Helvetica, Helvetica, 微软雅黑, 宋体;">Hi, I’m trying to > develop a new grammar for pg, can +you give me a code example to reference?</span><span>
It's unclear to me whether you want to entirely replace the flex/bison parser with something else or just add some new bison rule. If the latter, it really depends on what you change to achieve exactly. I guess you could just look at the gram.y git history until you find something close enough to your use case and get inspiration from that.