On 2/23/20 10:47 AM, Thomas Koenig wrote:
Hi Martin,
I was able to write a sanity check for these kind of issues, but it does
not resolve all similar issues for other keywords. It's not easy to do it.
Having looked at the origina awk code, I agree. Maybe, in the long
term, a lex/yacc grammar with a monolithic C program to write out
the headers wold be more suitable.
... or as I suggested, we could use Python. But that was not welcomed
by the community as unnecessary dependency.
Having said that, I think what you did is already quite valuable
and will save some gcc developers from a few prmature grey hairs :-)
Anyway, I'll send the patch in the next stage1.
Martin
So, I would recommend to commit as is. Sanity checks do not have
to be perfect.
Thanks for taking this on!
Regards
Thomas