473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Parsing c++ code

hi
I am looking for a simple C++ parser.
the parser that only can give me little information about C++ code.
Like.
Function name, returns, hasparameters, modifier.
similarly for classes
class name, has public,private, protected functions,
has bublic,private and protected functiions

and thats it, is there any simple parser that can do that and i dont
have to look deep into it
thank you

Aug 4 '05 #1
4 2951
Am Thu, 04 Aug 2005 07:35:28 -0700 schrieb humpty:
hi
I am looking for a simple C++ parser.
the parser that only can give me little information about C++ code.


Try doxygen. It works well, even if the code contains no doxygen comment.

Aug 5 '05 #2
Stefan Klemm wrote:
Am Thu, 04 Aug 2005 07:35:28 -0700 schrieb humpty:
hi
I am looking for a simple C++ parser.
the parser that only can give me little information about C++ code.

Try doxygen. It works well, even if the code contains no doxygen comment.


A configurable C++ parser-only would be a nice thing. For example, one
could use it to "grep" for old-style casts, something that cannot be
done with regular expressions. Other uses come to mind as well.

/David
Aug 7 '05 #3

"David Rasmussen" <da*************@gmx.net> wrote in message
news:42*********************@dtext02.news.tele.dk. ..
Stefan Klemm wrote:
Am Thu, 04 Aug 2005 07:35:28 -0700 schrieb humpty:
hi
I am looking for a simple C++ parser.
the parser that only can give me little information about C++ code.

A configurable C++ parser-only would be a nice thing. For example, one
could use it to "grep" for old-style casts, something that cannot be
done with regular expressions. Other uses come to mind as well.


You can't do that with a "simple" C++ parser. You need
a full C++ parser so the very details you want to find
are captured correctly.

See http://www.semdesigns.com/Products/F...pFrontEnd.html
--
Ira D. Baxter, Ph.D., CTO 512-250-1018
Semantic Designs, Inc. www.semdesigns.com
Aug 20 '05 #4
Ira Baxter wrote:

You can't do that with a "simple" C++ parser.
Depends on the relative term "simple", doesn't it?
You need
a full C++ parser so the very details you want to find
are captured correctly.

True, but this is still much simpler than a full compiler with various
intermediate representations for optimization etc. and one or more
backends for various targets.
See http://www.semdesigns.com/Products/F...pFrontEnd.html


I would like an open souce alternative.

/David
Aug 20 '05 #5

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

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
3
by: David Svoboda | last post by:
I have a server program that takes commands and acts on them. The server program can also take these commands from an input file or standard input (mainly for testing purposes). As such, I often...
9
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics"...
3
by: toton | last post by:
Hi, I have some ascii files, which are having some formatted text. I want to read some section only from the total file. For that what I am doing is indexing the sections (denoted by .START in...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
13
by: charliefortune | last post by:
I am fetching some product feeds with PHP like this $merch = substr($key,1); $feed = file_get_contents($_POST); $fp = fopen("./feeds/feed".$merch.".txt","w+"); fwrite ($fp,$feed); fclose...
7
by: Daniel Fetchinson | last post by:
Many times a more user friendly date format is convenient than the pure date and time. For example for a date that is yesterday I would like to see "yesterday" instead of the date itself. And for...
2
by: nicky123 | last post by:
Hi everyone, This is a brief description that I have provided for parsing & displaying an XML document using DOM API. Please feel free to post your own comments & views regarding...
1
by: hd95 | last post by:
In a perfect world my xml feed source would produce perfect xml ..that is not the case I am parsing an XML feed that sometimes has ampersands and dashes in the content that messes up my parsing. ...
1
by: eyeore | last post by:
Hello everyone my String reverse code works but my professor wants me to use pop top push or Stack code and parsing code could you please teach me how to make this code work with pop top push or...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.