Click here to Skip to main content
14,329,627 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: How bad can you mess up string parsing? Pin
Sander Rossel18-Aug-19 3:02
professionalSander Rossel18-Aug-19 3:02 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 3:05
memberhoney the codewitch18-Aug-19 3:05 
GeneralRe: How bad can you mess up string parsing? Pin
Sander Rossel18-Aug-19 3:10
professionalSander Rossel18-Aug-19 3:10 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 3:12
memberhoney the codewitch18-Aug-19 3:12 
GeneralRe: How bad can you mess up string parsing? Pin
Sander Rossel18-Aug-19 4:56
professionalSander Rossel18-Aug-19 4:56 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 4:57
memberhoney the codewitch18-Aug-19 4:57 
GeneralRe: How bad can you mess up string parsing? Pin
Rick York18-Aug-19 6:58
mveRick York18-Aug-19 6:58 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 7:02
memberhoney the codewitch18-Aug-19 7:02 
That's rather the point

I even have a test where it takes erroneus inputs and even with errors its expected to be able to complete the parse *AND* reconstruct the entire document based on the nodes therein. I compare that reconstruction with the original input so it's very demanding in terms of precision. Everything has to be reported even in worst case scenarios.

The LALR(1) parser does not pass these tests, but the LL(1) parser does.

Still, I'm satisfied enough with it for now. The error handling in the LALR(1) parser is going to be dodgy until i get my copy of the dragon book and can look at what they recommend.

This isn't standard error handling. This is being able to handle a situation where the input does not meet the expected format, and yet you have to continue parsing. It can be challenging.
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: How bad can you mess up string parsing? Pin
Nelek18-Aug-19 8:10
protectorNelek18-Aug-19 8:10 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 8:10
memberhoney the codewitch18-Aug-19 8:10 
GeneralRe: How bad can you mess up string parsing? Pin
BillWoodruff18-Aug-19 2:41
mveBillWoodruff18-Aug-19 2:41 
GeneralRe: How bad can you mess up string parsing? Pin
AnotherKen19-Aug-19 14:55
professionalAnotherKen19-Aug-19 14:55 
GeneralRe: How bad can you mess up string parsing? Pin
Sander Rossel19-Aug-19 19:28
professionalSander Rossel19-Aug-19 19:28 
GeneralOk, now I have two dev machines. Pin
OriginalGriff17-Aug-19 23:37
protectorOriginalGriff17-Aug-19 23:37 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 0:01
professionalSander Rossel18-Aug-19 0:01 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 0:19
protectorOriginalGriff18-Aug-19 0:19 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 0:21
professionalSander Rossel18-Aug-19 0:21 
GeneralRe: Ok, now I have two dev machines. Pin
RickZeeland18-Aug-19 0:31
mveRickZeeland18-Aug-19 0:31 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 1:58
professionalSander Rossel18-Aug-19 1:58 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 0:36
protectorOriginalGriff18-Aug-19 0:36 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 1:55
professionalSander Rossel18-Aug-19 1:55 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 2:26
protectorOriginalGriff18-Aug-19 2:26 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 2:52
professionalSander Rossel18-Aug-19 2:52 
GeneralRe: Ok, now I have two dev machines. Pin
RickZeeland18-Aug-19 3:43
mveRickZeeland18-Aug-19 3:43 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 4:59
professionalSander Rossel18-Aug-19 4:59 

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.