Click here to Skip to main content
15,893,668 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WNetConnectionDialog Pin
David Crow21-Jun-05 2:55
David Crow21-Jun-05 2:55 
GeneralRe: WNetConnectionDialog Pin
Still learning how to code21-Jun-05 6:53
Still learning how to code21-Jun-05 6:53 
QuestionHow to display tool tips... Pin
ugur_basak19-Jun-05 22:17
ugur_basak19-Jun-05 22:17 
AnswerRe: How to display tool tips... Pin
narendra_ b19-Jun-05 23:17
narendra_ b19-Jun-05 23:17 
GeneralRe: How to display tool tips... Pin
ugur_basak20-Jun-05 3:54
ugur_basak20-Jun-05 3:54 
GeneralUsing Context Free Grammers Pin
fordge19-Jun-05 22:05
fordge19-Jun-05 22:05 
GeneralRe: Using Context Free Grammers Pin
Rage19-Jun-05 22:34
professionalRage19-Jun-05 22:34 
GeneralRe: Using Context Free Grammers Pin
Bob Stanneveld19-Jun-05 23:13
Bob Stanneveld19-Jun-05 23:13 
I think that you should use a CF Grammer for parsing the file. The advantage of the CFG is, that when you have your grammer and rules, you can easely deduce code from it by yourself or a tool.

An other advantage of a CFG over RegEx is that with a CFG, you almost always have a good overview of what you are doing and where you are doing it, RegEx tend to get complicated really fast.

A recursive parser (from a CFG) is also easier to debug, than a state based RegEx parser, since you always have stack traces and you exacty know where you are and how you came there.

IMHO I think that regular expressions are great for validating strings (like postal codes, phone numbers, etc..), but for the real parsing you shouls stick with grammers and parsers.

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: Using Context Free Grammers Pin
John R. Shaw20-Jun-05 4:32
John R. Shaw20-Jun-05 4:32 
GeneralIs there anyway of looking at the code that initialises a DLL Pin
D_code_writer19-Jun-05 22:02
D_code_writer19-Jun-05 22:02 
GeneralRe: Is there anyway of looking at the code that initialises a DLL Pin
Rage19-Jun-05 22:07
professionalRage19-Jun-05 22:07 
GeneralRe: Is there anyway of looking at the code that initialises a DLL Pin
D_code_writer20-Jun-05 20:57
D_code_writer20-Jun-05 20:57 
QuestionHow to create disk image? Pin
jahfer19-Jun-05 21:10
jahfer19-Jun-05 21:10 
AnswerRe: How to create disk image? Pin
David Crow20-Jun-05 2:44
David Crow20-Jun-05 2:44 
GeneralRe: How to create disk image? Pin
Toby Opferman20-Jun-05 18:55
Toby Opferman20-Jun-05 18:55 
AnswerRe: How to create disk image? Pin
Alexander M.,20-Jun-05 3:27
Alexander M.,20-Jun-05 3:27 
AnswerRe: How to create disk image? Pin
John M. Drescher20-Jun-05 3:55
John M. Drescher20-Jun-05 3:55 
GeneralRe: How to create disk image? Pin
Bob Stanneveld20-Jun-05 20:48
Bob Stanneveld20-Jun-05 20:48 
GeneralRe: How to create disk image? Pin
John M. Drescher21-Jun-05 4:10
John M. Drescher21-Jun-05 4:10 
GeneralRe: How to create disk image? Pin
Bob Stanneveld21-Jun-05 20:31
Bob Stanneveld21-Jun-05 20:31 
GeneralUsing WTL in Win32 Pin
daydremer19-Jun-05 21:02
daydremer19-Jun-05 21:02 
GeneralRe: Using WTL in Win32 Pin
khan++19-Jun-05 22:01
khan++19-Jun-05 22:01 
GeneralRe: Using WTL in Win32 Pin
daydremer20-Jun-05 0:23
daydremer20-Jun-05 0:23 
Generalto draw bar garphs of geometrics function Pin
a_david12319-Jun-05 19:40
a_david12319-Jun-05 19:40 
GeneralRe: to draw bar garphs of geometrics function Pin
Rage19-Jun-05 21:49
professionalRage19-Jun-05 21:49 

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.