poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/5] Don't crash if the scanner fails


From: John Darrington
Subject: Re: [PATCH 3/5] Don't crash if the scanner fails
Date: Mon, 11 Nov 2019 15:25:56 +0100
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Nov 11, 2019 at 03:07:45PM +0100, Jose E. Marchesi wrote:
          
         +#define YY_FATAL_ERROR(msg)                              \
         +  do \
         +  { \
         +    pk_term_class ("error");                             \
         +    pk_printf (_("Fatal error: %s"), msg);               \
         +    pk_term_end_class ("error");                         \
         +    pk_puts ("\n");                                      \
         +  } while (0);
         +
     
     Hmmm, wouldn't a lexer fatal error qualify as an internal compiler error
     (ICE)?
     
     Maybe using pkl_ice in this context would be a better idea?

The question is, would you prefer poke to abort, or to ignore that
command (and warn about it) and continue?

J'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]