Context-free grammar for C

前端 未结 2 567
清歌不尽
清歌不尽 2020-12-28 16:31

I\'m working on a parser for C. I\'m trying to find a list of all of the context-free derivations for C. Ideally it would be in BNF or similar. I\'m sure such a thing is out

2条回答
  •  情歌与酒
    2020-12-28 17:18

    This is an ANSI-C grammar, updated to C11 standard. Should serve your purpose.

    http://www.quut.com/c/ANSI-C-grammar-y.html

提交回复
热议问题