| Related articles |
|---|
| paper: Towards Automatic Error Recovery in Parsing Expression johnl@taugh.com (John R Levine) (2025-07-08) |
| Re: paper: Towards Automatic Error Recovery in Parsing Expression 643-408-1753@kylheku.com (Kaz Kylheku) (2025-07-09) |
| Re: paper: Towards Automatic Error Recovery in Parsing Expression cross@spitfire.i.gajendra.net (2025-07-11) |
| From: | Kaz Kylheku <643-408-1753@kylheku.com> |
| Newsgroups: | comp.compilers |
| Date: | Wed, 09 Jul 2025 04:33:43 -0000 |
| Organization: | Compilers Central |
| References: | 25-07-004 |
| Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="10094"; mail-complaints-to="abuse@iecc.com" |
| Keywords: | errors, parse, comment |
| Posted-Date: | 10 Jul 2025 14:56:32 EDT |
On 2025-07-09, John R Levine <johnl@taugh.com> quoted:
> Error recovery is an essential feature for a parser that should be plugged
> in Integrated Development Environments (IDEs), which must build Abstract
I am deeply skeptical. Error recovery is essential when you're handing
a deck of punched cards to a job submission window.
A compiler integrated into an IDE can stop at the first error,
put the cursor there and so it goes.
The IDE can always be compiling as you type each character, so that most
of the time there are no errors in the code. The only time an error
occurs is when you type something malformed or not yet complete, and
that is happening exactly in one place: where the cursor is in the
file that has the current editing focus. The situation is flagged
as you type so you fix it
If your refactoring tools are producing bad code, the tools need
to be repaired.
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
[It's a little more complicated than that. Sometimes you cut and paste
code, or you import a file of code from somewhere. But I agree that a
plausible approach is to stop at the first error and say fix it. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.