是否有可用的开源c / c ++解析器? [英] is there any open source c/c++ parser available?

查看:60
本文介绍了是否有可用的开源c / c ++解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个可以编辑.h,.cpp文件的c / c ++编辑器,如果

那里有一个开源的c / c ++解析器,我的工作就会更加轻松,

提前感谢:)

i wanna implement an c/c++ editor that could edit .h,.cpp file, if
there''s an open source c/c++ parser, my job would be much eaiser,
thanks in advance :)

推荐答案

文字编辑器?

a text editer?


c / c ++代码编辑器。 (使用classview函数等)

为了组织classview,我必须分析.h,cpp文件,

这是一项复杂的任务,对吗?如果有任何开源项目可以实现这一目标,那将会有很大帮助

c/c++ code editor. (with classview function etc.)
in order to organize the classview i have to analyze the .h,cpp file,
it''s a complex task ,right? if there''s any open source project could
achieve this , that would help a lot


thinktwice写道:
thinktwice wrote:
c / c ++代码编辑器。 (具有classview功能等)
为了组织classview,我必须分析.h,cpp文件,这是一项复杂的任务,对吗?如果有任何开源项目可以实现这一目标,那将有很大帮助
c/c++ code editor. (with classview function etc.)
in order to organize the classview i have to analyze the .h,cpp file,
it''s a complex task ,right? if there''s any open source project could
achieve this , that would help a lot




当然g ++是开源的,并且有一个C ++解析器,我相信是以递归下降的方式手工制作的
。但是,我从来没有打算过去考虑(非常复杂的)gcc源代码。


问候,

Ben



Surely g++ is open source and has a C++ parser that I believe is
hand-crafted in a recursive descent manner. However, I have never
bothered to look into the (very complex) gcc source code before.

Regards,
Ben


这篇关于是否有可用的开源c / c ++解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆