Click here to Skip to main content
14,453,249 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.
 
GeneralMini CCCs 160 Pin
Tim Deveaux2-Jan-20 18:30
MemberTim Deveaux2-Jan-20 18:30 
GeneralRe: Mini CCCs 160 Pin
OriginalGriff2-Jan-20 20:55
communityengineerOriginalGriff2-Jan-20 20:55 
GeneralRe: Mini CCCs 160 - Done Pin
Tim Deveaux2-Jan-20 20:56
MemberTim Deveaux2-Jan-20 20:56 
Generalwe need to harness this talent for CodeProject ! Pin
BillWoodruff2-Jan-20 18:01
mveBillWoodruff2-Jan-20 18:01 
GeneralRe: we need to harness this talent for CodeProject ! Pin
PIEBALDconsult2-Jan-20 19:20
professionalPIEBALDconsult2-Jan-20 19:20 
GeneralRe: we need to harness this talent for CodeProject ! Pin
BillWoodruff3-Jan-20 2:12
mveBillWoodruff3-Jan-20 2:12 
GeneralRe: we need to harness this talent for CodeProject ! Pin
Mark_Wallace3-Jan-20 0:50
MemberMark_Wallace3-Jan-20 0:50 
GeneralMy observations on parser generators Pin
honey the codewitch2-Jan-20 15:07
mvahoney the codewitch2-Jan-20 15:07 
After using them and building several of them, I still prefer building my parsers by hand.

The only reason I don't is error handling and maintenance, although maintenance with generated parsers is a double edged sword. For starters, it generates a lot more code than you would if you hand rolled a parser, typically. Second, with a hand rolled parser you can parse directly into your final tree. With a generated parser you must first parse into a parse tree, before converting *that* to your final tree, and so maintenance becomes an issue again because there's that second phase which is usually hand-written. Although to be fair, the data you're working with in the second phase has already been validated and error checked for syntax and structure.

I provide macros to help with the second phase, but it doesn't help that much. It would be nice if i could make a grammar description that could completely shape a tree, and create arbitrary objects off of it, to mimic the creation-into-the-final-tree that hand rolled parsers can do.

I don't like that the generated parser will take my codedomgokit source from 500KB to about 1.5-2MB

But I also don't like how sketchy my hand rolled parser is.

Is the extra 1+MB worth it? I guess that's probably 400-500k compiled based on previous experience. Currently CodeDOM Go Kit is about 250K compiled.

I don't know. It's something to think about. I really want a Better Way(TM) - something that handles that second phase and rolls it into the first.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: My observations on parser generators Pin
Greg Utas2-Jan-20 16:04
professionalGreg Utas2-Jan-20 16:04 
GeneralRe: My observations on parser generators Pin
honey the codewitch2-Jan-20 16:10
mvahoney the codewitch2-Jan-20 16:10 
GeneralRe: My observations on parser generators Pin
Greg Utas2-Jan-20 16:59
professionalGreg Utas2-Jan-20 16:59 
GeneralRe: My observations on parser generators Pin
honey the codewitch2-Jan-20 17:13
mvahoney the codewitch2-Jan-20 17:13 
GeneralRe: My observations on parser generators Pin
honey the codewitch2-Jan-20 16:54
mvahoney the codewitch2-Jan-20 16:54 
GeneralRe: My observations on parser generators Pin
Mark_Wallace3-Jan-20 0:55
MemberMark_Wallace3-Jan-20 0:55 
GeneralVisual Studio and WINE? Pin
honey the codewitch2-Jan-20 13:00
mvahoney the codewitch2-Jan-20 13:00 
GeneralRe: Visual Studio and WINE? Pin
Kornfeld Eliyahu Peter2-Jan-20 13:07
mveKornfeld Eliyahu Peter2-Jan-20 13:07 
GeneralRe: Visual Studio and WINE? Pin
Eddy Vluggen2-Jan-20 13:55
professionalEddy Vluggen2-Jan-20 13:55 
GeneralRe: Visual Studio and WINE? Pin
honey the codewitch2-Jan-20 13:59
mvahoney the codewitch2-Jan-20 13:59 
GeneralRe: Visual Studio and WINE? Pin
Eddy Vluggen2-Jan-20 14:38
professionalEddy Vluggen2-Jan-20 14:38 
GeneralRe: Visual Studio and WINE? Pin
theoldfool2-Jan-20 14:51
professionaltheoldfool2-Jan-20 14:51 
GeneralRe: Visual Studio and WINE? Pin
honey the codewitch2-Jan-20 14:56
mvahoney the codewitch2-Jan-20 14:56 
GeneralRe: Visual Studio and WINE? Pin
Eddy Vluggen3-Jan-20 3:40
professionalEddy Vluggen3-Jan-20 3:40 
GeneralRe: Visual Studio and WINE? Pin
honey the codewitch3-Jan-20 5:04
mvahoney the codewitch3-Jan-20 5:04 
GeneralRe: Visual Studio and WINE? Pin
dandy723-Jan-20 4:44
Memberdandy723-Jan-20 4:44 
GeneralRe: Visual Studio and WINE? Pin
honey the codewitch3-Jan-20 5:02
mvahoney the codewitch3-Jan-20 5:02 

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.