Click here to Skip to main content
15,887,875 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Ruminations on parsing. Pin
Mircea Neacsu24-Nov-23 13:32
Mircea Neacsu24-Nov-23 13:32 
GeneralRe: Ruminations on parsing. Pin
jschell25-Nov-23 6:52
jschell25-Nov-23 6:52 
GeneralRe: Ruminations on parsing. Pin
honey the codewitch25-Nov-23 7:32
mvahoney the codewitch25-Nov-23 7:32 
GeneralRe: Ruminations on parsing. Pin
jschell27-Nov-23 5:47
jschell27-Nov-23 5:47 
GeneralRe: Ruminations on parsing. Pin
jschell25-Nov-23 6:48
jschell25-Nov-23 6:48 
GeneralRe: Ruminations on parsing. Pin
honey the codewitch25-Nov-23 7:27
mvahoney the codewitch25-Nov-23 7:27 
GeneralRe: Ruminations on parsing. Pin
jschell27-Nov-23 5:49
jschell27-Nov-23 5:49 
GeneralRe: Ruminations on parsing. Pin
Greg Utas24-Nov-23 15:05
professionalGreg Utas24-Nov-23 15:05 
Thumbs Up | :thumbsup: To parse C++, I used recursive descent and even wrote the lexical analysis routines from scratch. Fixing bugs is fairly straightforward, but I wouldn't have a clue how to fix them in a bottom-up parser. It's about 13K lines of code, including comments and blanks, and anyone familiar with C++ can look at the code and probably figure it out with relative ease. The "compiler" part, however, which has to understand what the parsed code is doing in order to perform static analysis, is much larger, probably 3x that size.

robust-services-core/src/ct/Parser.cpp · GitHub[^]
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: Ruminations on parsing. Pin
honey the codewitch25-Nov-23 4:49
mvahoney the codewitch25-Nov-23 4:49 
GeneralFarming Pin
trønderen23-Nov-23 13:52
trønderen23-Nov-23 13:52 
GeneralRe: Farming Pin
devenv.exe23-Nov-23 15:06
professionaldevenv.exe23-Nov-23 15:06 
GeneralRe: Farming Pin
Gerry Schmitz23-Nov-23 15:44
mveGerry Schmitz23-Nov-23 15:44 
GeneralRe: Farming Pin
englebart23-Nov-23 16:32
professionalenglebart23-Nov-23 16:32 
GeneralRe: Farming Pin
charlieg24-Nov-23 23:46
charlieg24-Nov-23 23:46 
GeneralRe: Farming Pin
jmaida23-Nov-23 17:17
jmaida23-Nov-23 17:17 
GeneralRe: Farming Pin
Daniel Pfeffer23-Nov-23 20:10
professionalDaniel Pfeffer23-Nov-23 20:10 
GeneralRe: Farming Pin
GuyThiebaut23-Nov-23 20:42
professionalGuyThiebaut23-Nov-23 20:42 
GeneralRe: Farming Pin
Daniel Pfeffer24-Nov-23 1:47
professionalDaniel Pfeffer24-Nov-23 1:47 
GeneralRe: Farming Pin
GuyThiebaut24-Nov-23 2:00
professionalGuyThiebaut24-Nov-23 2:00 
GeneralRe: Farming Pin
jmaida24-Nov-23 14:32
jmaida24-Nov-23 14:32 
GeneralRe: Farming Pin
jschell25-Nov-23 7:23
jschell25-Nov-23 7:23 
GeneralRe: Farming Pin
Gary R. Wheeler24-Nov-23 11:35
Gary R. Wheeler24-Nov-23 11:35 
GeneralRe: Farming Pin
Daniel Pfeffer25-Nov-23 8:41
professionalDaniel Pfeffer25-Nov-23 8:41 
GeneralRe: Farming Pin
Richard MacCutchan23-Nov-23 23:02
mveRichard MacCutchan23-Nov-23 23:02 
GeneralRe: Farming Pin
DerekT-P24-Nov-23 1:21
professionalDerekT-P24-Nov-23 1: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.