tag:blogger.com,1999:blog-6255758224607466565.post4730617402731865768..comments2024-02-11T10:25:39.241+01:00Comments on Sebastian Zarnekow's Blog: Xtext Corner #7 - Parser Error RecoveryAnonymoushttp://www.blogger.com/profile/05886096380926364322noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6255758224607466565.post-10443757582866409362013-05-30T17:06:09.835+02:002013-05-30T17:06:09.835+02:00Do you have any tips for forcing particular error ...Do you have any tips for forcing particular error recovery for a specific rule?<br /><br />I have a poorly designed language where if I can't identify a segment properly, I want to pop the parsing stack until I reach a specific token. This is so I can continue parsing the rest of the file from there.<br /><br />e.g.<br />Model hidden(SYM_SPACE, SYM_TAB):<br /> elem+=Option? =>(SYM_EOL elem+=Option?)*<br />;<br /><br />fails to parse further "Option" elements after an unexpected token is present after the SYM_EOL.<br /><br />Anonymoushttps://www.blogger.com/profile/09634380596179493255noreply@blogger.com