Click here to Skip to main content
14,297,726 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.
 
GeneralThought of the Day Pin
OriginalGriff17-Jul-19 5:01
protectorOriginalGriff17-Jul-19 5:01 
GeneralRe: Thought of the Day Pin
  Forogar  17-Jul-19 5:14
professional  Forogar  17-Jul-19 5:14 
GeneralRe: Thought of the Day Pin
lopatir17-Jul-19 5:33
memberlopatir17-Jul-19 5:33 
GeneralRe: Thought of the Day Pin
Dr.Walt Fair, PE17-Jul-19 13:08
professionalDr.Walt Fair, PE17-Jul-19 13:08 
GeneralRe: Thought of the Day Pin
Dr.Walt Fair, PE17-Jul-19 13:10
professionalDr.Walt Fair, PE17-Jul-19 13:10 
GeneralRe: Thought of the Day Pin
PeejayAdams17-Jul-19 5:51
memberPeejayAdams17-Jul-19 5:51 
GeneralRe: Thought of the Day Pin
jeron117-Jul-19 6:28
memberjeron117-Jul-19 6:28 
GeneralPeople Just Don't Appreciate Good Code =D Pin
honey the codewitch17-Jul-19 3:59
memberhoney the codewitch17-Jul-19 3:59 
So some of you know I write a lot of parser generator stuff.

You'd think with how much time I spend writing this stuff, I'd use a generator to do most of my parsing.

I do not.

About 80% of my real world parsers are hand rolled, because they're quicker to develop for really simple parses, up to the roughly the complexity of parsing regex

So I write a class called ParseContext which helps with the task IMMENSELY, including error handling, abstraction of TextReader vs String parsing, and common functions like SkipCCommentsAndWhitespace(), and TryParseJsonValue (I use JSON literals all the time)


So I post it here, because it's crazy useful. More useful than my parser generators most of the time.

Easier Hand Rolled Parsers[^]

And what do I get? Not 5 stars like my parser generator articles. No sir. I get not even 4.

Laugh | :laugh:

people just don't know what's good for them Big Grin | :-D
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: People Just Don't Appreciate Good Code =D Pin
Nelek17-Jul-19 4:19
protectorNelek17-Jul-19 4:19 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Dr.Walt Fair, PE17-Jul-19 13:15
professionalDr.Walt Fair, PE17-Jul-19 13:15 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Nelek18-Jul-19 8:52
protectorNelek18-Jul-19 8:52 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Dr.Walt Fair, PE17-Jul-19 13:15
professionalDr.Walt Fair, PE17-Jul-19 13:15 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Dr.Walt Fair, PE17-Jul-19 13:15
professionalDr.Walt Fair, PE17-Jul-19 13:15 
JokeRe: People Just Don't Appreciate Good Code =D Pin
ChandraRam17-Jul-19 23:02
memberChandraRam17-Jul-19 23:02 
GeneralRe: People Just Don't Appreciate Good Code =D PinPopular
Dave Kreskowiak17-Jul-19 4:26
mveDave Kreskowiak17-Jul-19 4:26 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
honey the codewitch17-Jul-19 4:29
memberhoney the codewitch17-Jul-19 4:29 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
OriginalGriff17-Jul-19 4:32
protectorOriginalGriff17-Jul-19 4:32 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Rage17-Jul-19 4:52
professionalRage17-Jul-19 4:52 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
  Forogar  17-Jul-19 4:50
professional  Forogar  17-Jul-19 4:50 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
honey the codewitch17-Jul-19 5:02
memberhoney the codewitch17-Jul-19 5:02 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
honey the codewitch17-Jul-19 5:05
memberhoney the codewitch17-Jul-19 5:05 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
Rage17-Jul-19 4:51
professionalRage17-Jul-19 4:51 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
#realJSOP17-Jul-19 5:26
mve#realJSOP17-Jul-19 5:26 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
lopatir17-Jul-19 5:29
memberlopatir17-Jul-19 5:29 
GeneralRe: People Just Don't Appreciate Good Code =D Pin
honey the codewitch17-Jul-19 6:39
memberhoney the codewitch17-Jul-19 6:39 

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.