Code review exists.
In this special case, you'd have to reverse engineer the grammar from the parser, calculate first/follow sets and then see if the grammar even is what you intended it to be.
I am using LLMs to speed up coding as well, but you have to be super vigilant, and do it in a very modular way.