Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDiagnose parser
https://www.eclipse.org/forums/index.php/mv/msg/7101/21629/#msg_21629
Originally posted by: hasanp87.hotmail.com
Pls provide me with more information regarding diagnose parser class.I
need to detect and error but allow further parsing.
Thanks]]>2008-06-23T07:25:24-00:00Re: Diagnose parser
https://www.eclipse.org/forums/index.php/mv/msg/7101/22286/#msg_22286
Originally posted by: regenmacher.online.de
"Hasan" <hasanp87@hotmail.com> schrieb im Newsbeitrag
news:4323c0e47cad65c010d42754329827eb$1@www.eclipse.org...
> Pls provide me with more information regarding diagnose parser class.I
> need to detect and error but allow further parsing.
Please, be more specific.
DiagnoseParser is called when the parser catches a BadParseException.
If you are interested in error recovery, take a look at
in DiagnoseParser.java. ( DiagnoseParser.java is in lpg.runtime )
Error recovery is done in two phases: A primaryPhase and (when primaryPhase
failed)a secondaryPhase. If this secondaryPhase fails we fall into "panic
mode"
To learn more about primaryPhase and secondaryPhase: see DiagnoseParser.java
In "Getting Started with LPG" and "Using the LALR Parse Generator" you can
found some short notes about error recovery.
If you are interested in scope orientated error recovery and CS-related
discussion you may also be interested in Philippe Charles (1991) "A
Practical method for Constructing Efficient LALR(k) Parsers with Automatic
Error Recovery" In Appendix E an Example is given.
( http://jikes.sourceforge.net/documents/ )
As I recall P Charles is the one JikesPG-guy.
michael]]>2008-07-03T08:33:43-00:00Re: Diagnose parser
https://www.eclipse.org/forums/index.php/mv/msg/7101/572000/#msg_572000
hasanp87@hotmail.com> schrieb im Newsbeitrag
news:4323c0e47cad65c010d42754329827eb$1@www.eclipse.org...
> Pls provide me with more information regarding diagnose parser class.I
> need to detect and error but allow further parsing.
Please, be more specific.
DiagnoseParser is called when the parser catches a BadParseException.
If you are interested in error recovery, take a look at
in DiagnoseParser.java. ( DiagnoseParser.java is in lpg.runtime )
Error recovery is done in two phases: A primaryPhase and (when primaryPhase
failed)a secondaryPhase. If this secondaryPhase fails we fall into "panic
mode"
To learn more about primaryPhase and secondaryPhase: see DiagnoseParser.java
In "Getting Started with LPG" and "Using the LALR Parse Generator" you can
found some short notes about error recovery.
If you are interested in scope orientated error recovery and CS-related
discussion you may also be interested in Philippe Charles (1991) "A
Practical method for Constructing Efficient LALR(k) Parsers with Automatic
Error Recovery" In Appendix E an Example is given.
( http://jikes.sourceforge.net/documents/ )