Click here to Skip to main content
14,547,127 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: graphics card Pin
PIEBALDconsult19-Dec-19 13:18
professionalPIEBALDconsult19-Dec-19 13:18 
GeneralHumans are ridiculous Pin
honey the codewitch17-Dec-19 17:19
mvahoney the codewitch17-Dec-19 17:19 
GeneralRe: Humans are ridiculous Pin
Super Lloyd17-Dec-19 18:50
MemberSuper Lloyd17-Dec-19 18:50 
GeneralRe: Humans are ridiculous Pin
honey the codewitch17-Dec-19 18:52
mvahoney the codewitch17-Dec-19 18:52 
GeneralRe: Humans are ridiculous Pin
Super Lloyd17-Dec-19 18:58
MemberSuper Lloyd17-Dec-19 18:58 
GeneralRe: Humans are ridiculous Pin
honey the codewitch17-Dec-19 18:59
mvahoney the codewitch17-Dec-19 18:59 
GeneralRe: Humans are ridiculous Pin
Super Lloyd17-Dec-19 19:03
MemberSuper Lloyd17-Dec-19 19:03 
GeneralRe: Humans are ridiculous Pin
honey the codewitch17-Dec-19 19:07
mvahoney the codewitch17-Dec-19 19:07 
A matter of taste I suppose.

I'm trying a little something different with parser generation this go round.

I'm making one that generates a recursive descent parser.

so like, your rules get baked out into recursive descent routines like this, instead of table driven code:

Makes it easy to put code into it.

private static ParseNode _ParseBoolean(ParserContext context) {
       ParseNode result = null;
       if ((JsonParser.@true == context.SymbolId)) {
           // Boolean -> true
           ParseNode[] children = new ParseNode[1];
           children[0] = new ParseNode(JsonParser.@true, context.Value);
           context.Advance();
           return new ParseNode(JsonParser.Boolean, children);
       }
       if ((JsonParser.@false == context.SymbolId)) {
           // Boolean -> false
           ParseNode[] children = new ParseNode[1];
           children[0] = new ParseNode(JsonParser.@false, context.Value);
           context.Advance();
           return new ParseNode(JsonParser.Boolean, children);
       }
       context.Error("Expecting true or false");
       return null;
   }

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: Humans are ridiculous Pin
Super Lloyd17-Dec-19 19:20
MemberSuper Lloyd17-Dec-19 19:20 
GeneralRe: Humans are ridiculous Pin
Nelek18-Dec-19 0:29
protectorNelek18-Dec-19 0:29 
GeneralRe: Humans are ridiculous Pin
Super Lloyd17-Dec-19 19:01
MemberSuper Lloyd17-Dec-19 19:01 
GeneralRe: Humans are ridiculous Pin
honey the codewitch17-Dec-19 19:02
mvahoney the codewitch17-Dec-19 19:02 
GeneralENGLISH is ridiculous Pin
Daniel Pfeffer17-Dec-19 19:29
professionalDaniel Pfeffer17-Dec-19 19:29 
GeneralRe: ENGLISH is ridiculous Pin
honey the codewitch17-Dec-19 19:31
mvahoney the codewitch17-Dec-19 19:31 
GeneralRe: ENGLISH is ridiculous Pin
Super Lloyd17-Dec-19 20:45
MemberSuper Lloyd17-Dec-19 20:45 
GeneralRe: ENGLISH is ridiculous Pin
PIEBALDconsult18-Dec-19 6:23
professionalPIEBALDconsult18-Dec-19 6:23 
GeneralRe: ENGLISH is ridiculous Pin
TheGreatAndPowerfulOz18-Dec-19 6:33
MemberTheGreatAndPowerfulOz18-Dec-19 6:33 
GeneralRe: ENGLISH is ridiculous Pin
honey the codewitch17-Dec-19 19:33
mvahoney the codewitch17-Dec-19 19:33 
GeneralRe: Humans are ridiculous Pin
Richard Deeming18-Dec-19 0:06
mveRichard Deeming18-Dec-19 0:06 
GeneralRe: Humans are ridiculous Pin
StarNamer_18-Dec-19 2:44
professionalStarNamer_18-Dec-19 2:44 
GeneralRe: Humans are ridiculous Pin
honey the codewitch18-Dec-19 2:45
mvahoney the codewitch18-Dec-19 2:45 
GeneralRe: Humans are ridiculous Pin
StarNamer_18-Dec-19 3:47
professionalStarNamer_18-Dec-19 3:47 
GeneralRe: Humans are ridiculous Pin
honey the codewitch18-Dec-19 3:49
mvahoney the codewitch18-Dec-19 3:49 
GeneralMini CCCs 156 Pin
Tim Deveaux17-Dec-19 16:37
MemberTim Deveaux17-Dec-19 16:37 
GeneralRe: Mini CCCs 156 Pin
OriginalGriff17-Dec-19 20:51
mveOriginalGriff17-Dec-19 20:51 

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.