Click here to Skip to main content
14,544,342 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: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 4:30
mvahoney the codewitch20-Feb-20 4:30 
GeneralRe: I'm stumped and in the worst way. Pin
Member 798912220-Feb-20 4:55
MemberMember 798912220-Feb-20 4:55 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 5:12
mvahoney the codewitch20-Feb-20 5:12 
GeneralRe: I'm stumped and in the worst way. Pin
0x01AA20-Feb-20 4:25
mve0x01AA20-Feb-20 4:25 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 4:31
mvahoney the codewitch20-Feb-20 4:31 
GeneralRe: I'm stumped and in the worst way. Pin
musefan20-Feb-20 4:47
Membermusefan20-Feb-20 4:47 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 5:09
mvahoney the codewitch20-Feb-20 5:09 
GeneralRe: I'm stumped and in the worst way. Pin
Member 1298255820-Feb-20 4:19
MemberMember 1298255820-Feb-20 4:19 
Error recovery merely tries to bring your parse in a valid state e.g. by adding error productions, error "repair" tries to convert the input into something that may be is not meant
by the writer of the program, but is valid.

Since you do kind of LR parsing, you are certain that what you have recognized is a valid
prefix. The "state" you are in when detecting the error gives all possibilities for an error free continuation. Add to each state such a symbol and you always can recover from the error
with a correct parse tree (although not necessarily the tree meant by the writer of the program)

(There are some cases where that does not work, where you have to do some form of state splitting as long as you do the simple forms like SLR or LALR)

Error recovery and repair was a popular topic in the late 70-ies and 80-ies, and dr Johannes Roehrich had a few good papers on it, Unfortunately these seem to be behind pay walls
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 4:33
mvahoney the codewitch20-Feb-20 4:33 
GeneralRe: I'm stumped and in the worst way. Pin
Member 1298255820-Feb-20 4:42
MemberMember 1298255820-Feb-20 4:42 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 4:54
mvahoney the codewitch20-Feb-20 4:54 
GeneralRe: I'm stumped and in the worst way. Pin
OriginalGriff20-Feb-20 4:21
mveOriginalGriff20-Feb-20 4:21 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 4:34
mvahoney the codewitch20-Feb-20 4:34 
GeneralRe: I'm stumped and in the worst way. Pin
OriginalGriff20-Feb-20 5:05
mveOriginalGriff20-Feb-20 5:05 
GeneralRe: I'm stumped and in the worst way. Pin
lopatir20-Feb-20 4:56
Memberlopatir20-Feb-20 4:56 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 5:02
mvahoney the codewitch20-Feb-20 5:02 
GeneralRe: I'm stumped and in the worst way. Pin
lopatir20-Feb-20 5:39
Memberlopatir20-Feb-20 5:39 
GeneralRe: I'm stumped and in the worst way. Pin
Gerry Schmitz20-Feb-20 6:17
mveGerry Schmitz20-Feb-20 6:17 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 6:30
mvahoney the codewitch20-Feb-20 6:30 
GeneralRe: I'm stumped and in the worst way. Pin
David O'Neil20-Feb-20 6:52
professionalDavid O'Neil20-Feb-20 6:52 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 7:04
mvahoney the codewitch20-Feb-20 7:04 
GeneralRe: I'm stumped and in the worst way. Pin
David O'Neil20-Feb-20 7:22
professionalDavid O'Neil20-Feb-20 7:22 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 7:51
mvahoney the codewitch20-Feb-20 7:51 
GeneralRe: I'm stumped and in the worst way. Pin
David O'Neil20-Feb-20 8:17
professionalDavid O'Neil20-Feb-20 8:17 
GeneralRe: I'm stumped and in the worst way. Pin
honey the codewitch20-Feb-20 8:28
mvahoney the codewitch20-Feb-20 8:28 

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.