473,387 Members | 1,512 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,387 software developers and data experts.

Testing custom VC++ parser

Hi All!

Currently I am in testing phase of developed by me in C# parser for ISO C++
and hopefully providing full support for VC++ as well. Unfortunately
preprocessor has to be off now so for tests I use files preprocessed with /P
option set on cl.exe command line.

Despite the fact that parser successfully passes all current tests (STL
source code and all of ATL/MFC plus many source bases available publicly) I
do plan to run it on all headers available in PlatformSDK. Unfortunately
creating by hand custom made "PlatformSDK.i" file which would include all
headers in correct order and with all macro definitions set to right values
is really tedious while doing it automatically without parsing files and
recreating graph of include statements is rather error prone.

Has anyone any idea or can point me to any article or documentation which
may help me to do it fast and right?

Cheers

Jacek
Nov 17 '05 #1
1 1093
Hi again!

Just for info to others who may get into similar problem -> I have written
simple parser which processed all #include directives and later there was
some long unidirectional graph walking to be done - 2 hours of implementing
very simple program and overnight computer run to find least number of
required headers to include and process all of them - nice NP problem. By
the way - do you know that there are very nice infinite loops in Platform
SDK headers tree?

My search for any info on headers tree structure in MSDN and on net failed.

cheers

Użytkownik "Jacek" <sh*************@aster.pl> napisał w wiadomo¶ci
news:uh*************@tk2msftngp13.phx.gbl...
Hi All!

Currently I am in testing phase of developed by me in C# parser for ISO
C++ and hopefully providing full support for VC++ as well. Unfortunately
preprocessor has to be off now so for tests I use files preprocessed with
/P option set on cl.exe command line.

Despite the fact that parser successfully passes all current tests (STL
source code and all of ATL/MFC plus many source bases available publicly)
I do plan to run it on all headers available in PlatformSDK. Unfortunately
creating by hand custom made "PlatformSDK.i" file which would include all
headers in correct order and with all macro definitions set to right
values is really tedious while doing it automatically without parsing
files and recreating graph of include statements is rather error prone.

Has anyone any idea or can point me to any article or documentation which
may help me to do it fast and right?

Cheers

Jacek

Nov 17 '05 #2

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

Similar topics

6
by: Tom Verbeure | last post by:
Hello All, so I'm now convinced that unit testing is really the way to go and I want to add it to an existing project. The first thing that I find out, is that, well, it's hard work. Harder than...
2
by: mp | last post by:
Hi, I have a Static library application in vc++ which generates Parser.lib. I have written a exe application in vc++ that links to Parser.lib. This does some processing. (This project...
0
by: Eachus | last post by:
Hello, I’m trying to create a web custom control. I’ve worked in asp.net extensively, but this is the first time I’ve attempted a web custom control. As a test, I created a control exactly...
1
by: xamman | last post by:
i have the same problem as this earlier post (unfortuneately he never received a reply) any suggestions? thx I'm trying to create a web custom control. I've worked in asp.net extensively, but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.