问题描述
我工作的一个解析器C.我试图找到所有的上下文推导的列表为C.理想情况下是在BNF或相似。我相信这样的事情是有,但周围的Googling还没有给我太多。阅读源$ C $ C为现有的解析器/编译器已被证明是远远的困惑多于帮助,因为大多数我发现有一个比我建立更加雄心勃勃和复杂的。
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 there, but googling around hasn't given me much. Reading the source code for existing parsers/compilers has proven to be far more confusing than helpful, as most that I've found are much more ambitious and complicated than the one I'm building.
感谢一大堆!
推荐答案
您可以随时使用C11标准本身的附录A。该免费提供的标准草案将满足您的需要,在
You could always use Annex A of the C11 standard itself. The freely available draft standard will work for your purposes, at http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf .
这篇关于上下文无关文法C吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!