473,785 Members | 2,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 "PlatformSD K.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 1118
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******** *****@tk2msftng p13.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 "PlatformSD K.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
3690
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 writing the real functional code. My application manipulates graphs. I first write the skeleton in Python, then convert it to C++ for high performance (some graphs can have millions of nodes.)
2
2178
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 generates processor.exe) I have given the path to Parser.lib in the additional library resources in the linker settings and included a header file Parser.h. This works perfectly.
0
1435
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 as described in one of the walkthroughs (except for a couple of grammatical changes that the vs.net IDE insisted on). The one thing I did different was to compile it via the IDE rather than the command line. But it doesn’t work. In design...
1
384
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 this is the first time I've attempted a web custom control. As a test, I created a control exactly as described in one of the walkthroughs (except for a couple of grammatical changes that the
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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
10325
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...
1
10091
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
9950
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
8972
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
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
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.