Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL basic_string 2 MFC Pin
Christian Graus11-May-04 14:27
protectorChristian Graus11-May-04 14:27 
GeneralRe: STL basic_string 2 MFC Pin
alex.barylski11-May-04 14:41
alex.barylski11-May-04 14:41 
Generaldelayload Pin
Christopher Lloyd11-May-04 14:14
Christopher Lloyd11-May-04 14:14 
GeneralRe: delayload Pin
igor196012-May-04 9:29
igor196012-May-04 9:29 
Generalregex parsing C++ Pin
alex.barylski11-May-04 13:11
alex.barylski11-May-04 13:11 
GeneralRe: regex parsing C++ Pin
Erik Thompson11-May-04 13:39
sitebuilderErik Thompson11-May-04 13:39 
GeneralRe: regex parsing C++ Pin
alex.barylski11-May-04 14:41
alex.barylski11-May-04 14:41 
GeneralRe: regex parsing C++ Pin
Andrew Walker11-May-04 16:27
Andrew Walker11-May-04 16:27 
Hockey wrote:
It's actually not for C++ it's for PHP

I'm a bit confused - so If I've got it wrong and you actually want to parse PHP please forgive me Blush | :O .

If it is C++ that you want to parse my suggestion is that you don't even try. It's far too hard - use something else someone has already done. Even doxygen, which is brilliant at what it does, clearly states that there are problems with the parser (I've never seen them, but I'm sure that the Doxygen team would know). Doxygen does however ship with source, and with some (rather large) tweaks i'm sure you could get it to output what you needed.

If you've looked at spirit it might be worth looking at boost::regex which contains at least a partial scan of a C++ file for keywords and classes, but I doubt that's what you're looking for.

If you need to get more information than doxygen (especially the XML output of doxygen) can provide, I strongly suggest you at least check out GCC-XML[^] which outputs the GCC compiler database to XML - everything except for method bodies (which you didn't ask for) and comments (which you seem to have sorted anyway) are included in the output.

GCCXML was a pain to set it up to work inside VS.NET but it works quite well unless you use huge numbers of templates (eg/ the boost libraries) and then the problem comes down to the (albeit small) differences in the way Microsoft and GCC compilers parse code. The output files from GCCXML are enormous, so finding good ways to filter out the data that you don't want is critical.

Good Luck!


If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.

Rudyard Kipling

GeneralRe: regex parsing C++ Pin
alex.barylski11-May-04 16:38
alex.barylski11-May-04 16:38 
GeneralRe: regex parsing C++ Pin
Andrew Walker11-May-04 16:42
Andrew Walker11-May-04 16:42 
GeneralRe: regex parsing C++ Pin
Snyp11-May-04 13:40
Snyp11-May-04 13:40 
GeneralGraphics Programming :: Approach and Books Pin
valikac11-May-04 12:53
valikac11-May-04 12:53 
GeneralRe: Graphics Programming :: Approach and Books Pin
Jim Crafton11-May-04 13:10
Jim Crafton11-May-04 13:10 
GeneralRe: Graphics Programming :: Approach and Books Pin
valikac11-May-04 13:22
valikac11-May-04 13:22 
GeneralRe: Graphics Programming :: Approach and Books Pin
parths11-May-04 20:21
parths11-May-04 20:21 
GeneralSuggested Book Pin
ursus zeta11-May-04 13:27
ursus zeta11-May-04 13:27 
GeneralRe: Suggested Book Pin
Jim Crafton11-May-04 14:12
Jim Crafton11-May-04 14:12 
GeneralRe: Suggested Book Pin
Christian Graus11-May-04 14:28
protectorChristian Graus11-May-04 14:28 
GeneralRe: Graphics Programming :: Approach and Books Pin
Christian Graus11-May-04 14:33
protectorChristian Graus11-May-04 14:33 
GeneralRe: Question 1 Pin
Andrew Walker11-May-04 16:38
Andrew Walker11-May-04 16:38 
GeneralRe: Graphics Programming :: Approach and Books Pin
valikac12-May-04 4:43
valikac12-May-04 4:43 
Generalfreshman: The Sturct MSG has six memebers, but WndProc just need the first four, why Pin
bloggs197411-May-04 10:30
bloggs197411-May-04 10:30 
GeneralRe: freshman: The Sturct MSG has six memebers, but WndProc just need the first four, why Pin
Jim Crafton11-May-04 13:12
Jim Crafton11-May-04 13:12 
GeneralThe WndProc is only passed the first four parameter, so how can I deal with the last two parameters in the case-clause? Pin
bloggs197411-May-04 16:20
bloggs197411-May-04 16:20 
GeneralRe: The WndProc is only passed the first four parameter, so how can I deal with the last two parameters in the case-clause? Pin
hard.disk11-May-04 19:20
hard.disk11-May-04 19:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.