473,498 Members | 359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Seeking code to parse header files

I have been searching, unsuccessfully, for a program which will parse
header files and generate stubs for all external declarations
(classes, functions, <shudderglobal variables).

I want this so that I can generate dummies for interfacing software,
for unit testing. As I say, I haven't found it, so it looks like I
will have to code my own.

Before I reinvent the wheel, does anyone know of any freely available
software to parse header files?

Thanks in advance.

Aug 16 '07 #1
1 2331
Baron Samedi wrote:
I have been searching, unsuccessfully, for a program which will parse
header files and generate stubs for all external declarations
(classes, functions, <shudderglobal variables).

I want this so that I can generate dummies for interfacing software,
for unit testing. As I say, I haven't found it, so it looks like I
will have to code my own.

Before I reinvent the wheel, does anyone know of any freely available
software to parse header files?
There are two freely available projects that I'm aware of which can do
this. Firstly SWIG (http://www.swig.org), and secondly the gcc-xml
project (http://www.gccxml.org). Swig has an XML output target, which is
what I used a while ago in a project to parse some C++, although the
swig parser isn't really a full C++ parser (it only parses a commonly
used subset)

Alan
Aug 16 '07 #2

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

Similar topics

26
2907
by: Michael Strorm | last post by:
Hi! I posted a message a while back asking for project suggestions, and decided to go with the idea of creating an adventure game (although it was never intended to be a 'proper' game, rather an...
0
1037
by: dev | last post by:
Hey all, I need some guidens please.. ok I have 3 xml files and they are connected with 3 different xsl pages.. i want to make a Object Class that first build up the first xml.. then the 2...
10
19472
by: Ryan Cooper | last post by:
Can anyone give me an idea or better yet, a code sample, demonstrating how to parse a JPEG header and search the header for markers located in the stream? Basically, I need to analyze an...
67
4189
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
11
2189
by: MLH | last post by:
Anyone tried something reliable. Need to implement sol'n to reliably create RTF's of Access reports readable by WordPad.
34
1876
by: Alan Larsson | last post by:
Is there a way i can look at the php code that is runnig a site, without any ind of admin access to the server?
3
2617
by: Jia Lu | last post by:
Hello all I see there are lots of flat db or db-like modules in the standard python modules. What about the keywords seeking speed of them ? (I want to put about 10000 articles with 10000...
0
1229
by: Baron Samedi | last post by:
I am looking for a (free) tool which takes C++ Header files as its input and generates skeletons for the corresponding source code. Just empty functions are acceptable, but a templating system...
0
1180
by: Anish Chapagain | last post by:
Hi, i tried to compile the swig .i file but am having probel with the error: parse error before % token example.i 1. %module example 2. %{ 3. #include <header.h> 4. %}
0
7124
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
7163
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,...
0
7200
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...
1
6884
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...
0
5460
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
4586
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
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...
1
651
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
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...

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.