Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralReading track and artist info from a cd Pin
DABHand27-Sep-03 5:12
DABHand27-Sep-03 5:12 
GeneralRe: Reading track and artist info from a cd Pin
l a u r e n27-Sep-03 11:05
l a u r e n27-Sep-03 11:05 
GeneralRe: Reading track and artist info from a cd Pin
Alexander M.,27-Sep-03 12:05
Alexander M.,27-Sep-03 12:05 
GeneralHDN_ITEMCHANGED mesage on CListView Pin
Wim Jans27-Sep-03 5:00
Wim Jans27-Sep-03 5:00 
GeneralRe: HDN_ITEMCHANGED mesage on CListView Pin
Michael Dunn27-Sep-03 7:23
sitebuilderMichael Dunn27-Sep-03 7:23 
GeneralRe: HDN_ITEMCHANGED mesage on CListView Pin
Wim Jans27-Sep-03 9:14
Wim Jans27-Sep-03 9:14 
GeneralSending Messages to plug-ins Pin
Steve Messer27-Sep-03 4:58
Steve Messer27-Sep-03 4:58 
GeneralRe: Sending Messages to plug-ins Pin
Roger Allen27-Sep-03 6:13
Roger Allen27-Sep-03 6:13 
GeneralRe: Sending Messages to plug-ins Pin
Steve Messer27-Sep-03 8:22
Steve Messer27-Sep-03 8:22 
GeneralRe: Sending Messages to plug-ins Pin
Steve Messer27-Sep-03 9:38
Steve Messer27-Sep-03 9:38 
Generalwarning problem Pin
coda_x27-Sep-03 2:24
coda_x27-Sep-03 2:24 
GeneralRe: warning problem Pin
Michael P Butler27-Sep-03 2:51
Michael P Butler27-Sep-03 2:51 
GeneralRe: warning problem Pin
AORD27-Sep-03 11:34
AORD27-Sep-03 11:34 
GeneralRe: warning problem Pin
coda_x27-Sep-03 16:28
coda_x27-Sep-03 16:28 
Generalwarning problem Pin
coda_x27-Sep-03 2:24
coda_x27-Sep-03 2:24 
GeneralRe: warning problem Pin
Ian Darling27-Sep-03 2:46
Ian Darling27-Sep-03 2:46 
GeneralRe: warning problem Pin
Mike Dimmick27-Sep-03 12:18
Mike Dimmick27-Sep-03 12:18 
Generalanalyze C++ source code(VC) and Java source code Pin
candan26-Sep-03 23:09
professionalcandan26-Sep-03 23:09 
GeneralRe: analyze C++ source code(VC) and Java source code Pin
Mike Dimmick27-Sep-03 2:37
Mike Dimmick27-Sep-03 2:37 
Ah, something on which I have experience Wink | ;)

In the final year of my degree, I had to select an individual project. One of the projects offered was to produce an application to draw diagrams of the static structure of an input program - I selected this project.

Subsequently I discovered that it's extremely hard to write a C++ parser. A Java parser isn't a lot easier. My difficulties in writing the parser basically meant that the rest of the application never got written, and I damn near failed the project.

Anyway, while trying to write it, I posted numerous questions and progress reports on various Usenet newsgroups. The best way to read it all is to Google[^] for it.

See also http://www.nobugs.org/developer/parsingcpp/[^].

Since then, I've come to the opinion that you should use the most powerful tools possible when parsing C++ - ones that cope with the ambiguity inherent in the language. The general name for this type of tool is a 'Generalised LR' parser - often abbreviated GLR. Elkhound[^] looks quite interesting.

As for me, I'm steering well clear of parsing for the meantime. I think the understanding of C++ I got from trying to parse it was quite helpful, anyway.

For either language, you'll want to get hold of the appropriate specification. For Java, the specification is The Java Language Specification[^]. For C++, it's ISO 14882[^] (which has rocketed in price - this used to be $18! - although you may find a copy on the web somewhere.)
GeneralRe: analyze C++ source code(VC) and Java source code Pin
Taka Muraoka27-Sep-03 14:41
Taka Muraoka27-Sep-03 14:41 
GeneralRe: analyze C++ source code(VC) and Java source code Pin
Mike Dimmick27-Sep-03 23:59
Mike Dimmick27-Sep-03 23:59 
GeneralRe: analyze C++ source code(VC) and Java source code Pin
Taka Muraoka28-Sep-03 22:14
Taka Muraoka28-Sep-03 22:14 
GeneralRe: analyze C++ source code(VC) and Java source code Pin
candan30-Sep-03 14:34
professionalcandan30-Sep-03 14:34 
GeneralRasApi error Pin
Kannan Ramanathan26-Sep-03 21:52
Kannan Ramanathan26-Sep-03 21:52 
GeneralRe: RasApi error Pin
Kannan Ramanathan26-Sep-03 21:55
Kannan Ramanathan26-Sep-03 21:55 

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.