473,657 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
10 4017
a text editer?

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

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
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
Lex & Yaac. Flex and Bison.

Apr 21 '06 #7
se************* ****@gmail.com wrote:
Lex & Yaac. Flex and Bison.

Are these random musings, or a response to something?

--
Ian Collins.
Apr 21 '06 #8
http://www.antlr.org/

"thinktwice " <me*********@gm ail.com> wrote in message
news:11******** **************@ t31g2000cwb.goo glegroups.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

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2415
by: user mysql | last post by:
HELLO FRIENDS. HERE A FANTASTIC NEWS FOR MYSQL WINDOWS USER. READE THIS. The article is grab from www/internetnews/com/ DO YOU THINK THAT IS A GOOD NEWS ? ----------------------------------------------------------------------------- Open source database server company MySQL's next production release of its open source MySQL database server will be sporting a new Windows installer, one partially built with an open source project courtesy...
0
1698
by: Roberto Nunnari | last post by:
Hi all. I announce that there's a brand new XML parser in the Open Source arena: NunniMJAX - release 1.0 http://nunnimjax.nunnisoft.ch NunniMJAX is a Java, non validating XML parser. Its APIs and functioning are very similar to SAX. That means that if you're familiar with SAX it will be straitforward to start using it.
0
1432
by: Roberto Nunnari | last post by:
Hi all. I announce that there's a brand new XML parser in the Open Source arena: NunniMCAX - release 1.0 http://nunnimcax.nunnisoft.ch/en/ NunniMCAX is a C, non validating XML parser. Its APIs and functioning are recall SAX. That means that if you're familiar with SAX it will be straitforward to start using it.
0
1576
by: Roberto Nunnari | last post by:
Hi all. I announce that there's a brand new XML parser in the Open Source arena: NunniMCAX - release 1.0 http://nunnimcax.nunnisoft.ch/en/ NunniMCAX is a C, non validating XML parser. Its APIs and functioning are recall SAX. That means that if you're familiar with SAX it will be straitforward to start using it.
2
1895
by: karthik bala guru | last post by:
Hi, I would like to have a XHTML Generator and Parser in C language from the open source community. Someone Here, kindly give me a link or the name of the tool available in the opensource world. Or atleast a XML Generator / Parser that can be easily converted to XHTML Parser Generator in C with the very minimum changes.
8
9162
by: Asma | last post by:
Dear Sir, I am trying to find a way to open a Word document using C language and read the text of word doc into a variable. (Turbo C on Dos 6.0). Can anyone please tell me which libraries in C can be used to perform this task. Thanks you so much
3
10197
by: Dennis Myrén | last post by:
Hi. Are there any open source libraries available for parsing Microsoft Word Documents? Especially written in C# able to parse Word2003 documents. I doubt there is. Are there any specification on the format available from Microsoft? I have searched. No success.
0
1569
by: publicityfoss | last post by:
Apologizes for multiple copies eventually received Documents on Migrations to Open Source available by the COSPA Consortium The COSPA consortium (Consortium for studying, evaluating, and supporting the introduction of Open Source software and Open Data Standards in the Public Administration) has made available for general download the
158
6359
by: Giovanni Bajo | last post by:
Hello, I just read this mail by Brett Cannon: http://mail.python.org/pipermail/python-dev/2006-October/069139.html where the "PSF infrastracture committee", after weeks of evaluation, recommends using a non open source tracker (called JIRA - never heard before of course) for Python itself. Does this smell "Bitkeeper fiasco" to anyone else than me? --
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8603
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.