Click here to Skip to main content
16,017,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralParser/Compiler Pin
Kuniva1-Oct-03 10:17
Kuniva1-Oct-03 10:17 
GeneralRe: Parser/Compiler Pin
Ravi Bhavnani1-Oct-03 10:32
professionalRavi Bhavnani1-Oct-03 10:32 
GeneralRe: Parser/Compiler Pin
parths1-Oct-03 18:07
parths1-Oct-03 18:07 
GeneralRe: Parser/Compiler Pin
valikac1-Oct-03 10:32
valikac1-Oct-03 10:32 
GeneralRe: Parser/Compiler Pin
Kuniva2-Oct-03 4:52
Kuniva2-Oct-03 4:52 
GeneralRe: Parser/Compiler Pin
David Crow1-Oct-03 10:35
David Crow1-Oct-03 10:35 
GeneralRe: Parser/Compiler Pin
Ravi Bhavnani1-Oct-03 10:36
professionalRavi Bhavnani1-Oct-03 10:36 
GeneralRe: Parser/Compiler Pin
Mike Dimmick1-Oct-03 12:06
Mike Dimmick1-Oct-03 12:06 
I quite like Modern Compiler Design[^].

Most courses and texts cover simple parsing algorithms such as LL(1), LL(k) and LALR(1). These algorithms are powerful, but you really have to structure your grammar carefully to make them work - you tend to have to compromise your language, designing it around the parsing algorithm.

Famously, Bjarne Stroustrup did not do this, with the end result that C++ cannot be parsed by an LALR(1) algorithm (you must typically feed back into the lexer).

Generalised LR parsing algorithms are beginning to perform nearly as well as LALR parsers generated by yacc or bison. If you just want to parse your language and be done with it, consider the Elkhound[^] parser generator.
GeneralMinimizing command.com window called with system() Pin
Member 5045041-Oct-03 9:17
Member 5045041-Oct-03 9:17 
GeneralRe: Minimizing command.com window called with system() Pin
OBRon1-Oct-03 9:47
OBRon1-Oct-03 9:47 
GeneralRe: Minimizing command.com window called with system() Pin
Member 5045043-Oct-03 7:04
Member 5045043-Oct-03 7:04 
GeneralRe: Minimizing command.com window called with system() Pin
Neville Franks1-Oct-03 10:26
Neville Franks1-Oct-03 10:26 
GeneralRe: Minimizing command.com window called with system() Pin
Member 5045043-Oct-03 7:05
Member 5045043-Oct-03 7:05 
GeneralInitializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 8:23
sjcomp1-Oct-03 8:23 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
Joaquín M López Muñoz1-Oct-03 9:42
Joaquín M López Muñoz1-Oct-03 9:42 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 10:00
sjcomp1-Oct-03 10:00 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
Joaquín M López Muñoz1-Oct-03 10:12
Joaquín M López Muñoz1-Oct-03 10:12 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 10:33
sjcomp1-Oct-03 10:33 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
Joaquín M López Muñoz1-Oct-03 11:28
Joaquín M López Muñoz1-Oct-03 11:28 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 12:52
sjcomp1-Oct-03 12:52 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
igor19601-Oct-03 10:18
igor19601-Oct-03 10:18 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 10:28
sjcomp1-Oct-03 10:28 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
igor19601-Oct-03 10:52
igor19601-Oct-03 10:52 
GeneralRe: Initializing Static Variables in C++ Libraries Pin
sjcomp1-Oct-03 12:50
sjcomp1-Oct-03 12:50 
GeneralCreatethread into class Pin
jerome_data1-Oct-03 8:21
jerome_data1-Oct-03 8:21 

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.