On 28 Feb 2003 at 22:27, Frank Heckenbach wrote:
[...]
In fact, quite a bit of work in GPC is currently spent on continuing after an error within one source file. This is extra work in the parser (syntactic recovery, still far from perfect) and in the rest of the compiler (passing around error indicators (`error_mark_node') and trapping them in the right places to avoid crashing).
I'm wondering if it wouldn't be easier to drop this all. Today's compilation times are usually short enough that one can retry after each error. But then, the current behaviour is GCC compatible, so I guess we'll have to keep it ...
It comes in handy sometimes - but I don't believe that all Pascal compilers do it. One might miss having the feature in some situations, but I don't think it will be a disaster to dump it. It is also a good thing to have the option of stopping after the first error is encountered.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/