By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,346 Members | 2,318 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,346 IT Pros & Developers. It's quick & easy.

is there any open source c/c++ parser available?

P: n/a
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 :)

Apr 21 '06 #1
Share this Question
Share on Google+
10 Replies


P: n/a
a text editer?

Apr 21 '06 #2

P: n/a
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

Apr 21 '06 #3

P: n/a
thinktwice wrote:
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


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
Apr 21 '06 #4

P: n/a

thinktwice wrote:
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 :)


Well, there are code editors that do this that are open source.
KDevelop does I think, as does XEmacs given the right lisp programs
(cc-mode, speedbar, eide...)

Apr 21 '06 #5

P: n/a
thinktwice wrote:
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 :)

What ever happened to pc-lint? It was common about 15 years back. Did it
just get dropped?
Bill Baka
Apr 21 '06 #6

P: n/a
Lex & Yaac. Flex and Bison.

Apr 21 '06 #7

P: n/a
se*****************@gmail.com wrote:
Lex & Yaac. Flex and Bison.

Are these random musings, or a response to something?

--
Ian Collins.
Apr 21 '06 #8

P: n/a
http://www.antlr.org/

"thinktwice" <me*********@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
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 :)

Apr 21 '06 #9

P: n/a

Kari Hallfast wrote:
http://www.antlr.org/


Antlr fits nicely with the likes of Yacc and Lex...parser _generators_.
OP asked for a parser because they are too lazy to write one (me too).
Pointing out several open source parser generators ain't what they
asked for so doing so without mentioning that they are not, in fact,
parsers seems rather rude to me.

Apr 21 '06 #10

P: n/a
In article <1145617945.412042.300520
@t31g2000cwb.googlegroups.com>,
se*****************@gmail.com says...
Lex & Yaac. Flex and Bison.


A C++ parser has a number of requirements that are quite
difficult to meet with these tools.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Apr 22 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.