Where can I find standard BNF or YACC grammar for C++ language?

后端 未结 6 1150
小鲜肉
小鲜肉 2021-01-30 18:00

I\'m trying to work on a kind of code generator to help unit-testing an legacy C/C++ blended project. I don\'t find any kind of independent tool can generate stub code from decl

6条回答
  •  耶瑟儿~
    2021-01-30 18:41

    I found this one recently. I haven't tried it out, so am not sure if it works. Could you give more info on the tool you're trying to develop? I downloaded this grammar because I'm working on an instrumentation tool so I can add coverage info for my unit test framework.

    After re-reading your comment...

    I think this tool exactly fit your needs.

提交回复
热议问题