[Top][All Lists]

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

Re: LAC (lookahead correction) for syntax error handling

From: Joel E. Denny
Subject: Re: LAC (lookahead correction) for syntax error handling
Date: Sat, 12 Feb 2011 09:04:30 -0500 (EST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

On Sat, 29 Jan 2011, Joel E. Denny wrote:

> Also, there is another problem with syntax error messages that we've 
> discussed before and that LAC might expose further.  Sometimes, when it 
> seems LAC should correct the expected token list in a syntax error 
> message, both the unexpected token and the expected token list are simply 
> dropped.

Oops.  The unexpected token is still reported.  Only the expected token 
list is dropped.

> The problem here is that, for the sake of translation, the 
> expected token list is limited to 4 tokens.  I'm thinking the user ought 
> to be able to control the limit, possibly removing the limit entirely. 
> Surely we can find some way to handle the translation issues.
> In any case, unless there's a simple fix, I don't expect to address this 
> in 2.5, but I should probably document it.  NEWS should probably at least 
> mention that there are some minor caveats to read about in the manual.

reply via email to

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