On 29 Mar 2008, at 14:31, Claudio Saavedra wrote:
The feature most asked for is finding the correct set of lookahead
token, to be used in an interactive parser. The error recovery thing
seems to be rather out of vogue these days, in view of very
interactive computer programming - it is fairly eas
El sáb, 29-03-2008 a las 14:17 +0100, Hans Aberg escribió:
>
> The feature most asked for is finding the correct set of lookahead
> token, to be used in an interactive parser. The error recovery thing
> seems to be rather out of vogue these days, in view of very
> interactive computer progr
On 29 Mar 2008, at 13:22, Claudio Saavedra wrote:
The problem is that after an error token has arrived in the input,
additional reductions can take place before an error is issued by the
parser. So, although errors are detected, they are issued at a point
hampering good error recovery.
That's e
El sáb, 29-03-2008 a las 13:05 +0100, Hans Aberg escribió:
> On 29 Mar 2008, at 12:50, Claudio Saavedra wrote:
> >> It prints something like that (or used to), but the LALR(1) that
> >> Bison uses compacts the statements in a way that when an error token
> >> appears in the input, additional reduc
On 29 Mar 2008, at 12:50, Claudio Saavedra wrote:
It prints something like that (or used to), but the LALR(1) that
Bison uses compacts the statements in a way that when an error token
appears in the input, additional reduction can be performed. So to
get a fully correct error handling, including
El dom, 09-03-2008 a las 16:50 +0100, Hans Aberg escribió:
>
> It prints something like that (or used to), but the LALR(1) that
> Bison uses compacts the statements in a way that when an error token
> appears in the input, additional reduction can be performed. So to
> get a fully correct e
On 8 Mar 2008, at 17:47, Necrosoft wrote:
I would know the expected token in a parser (GLR also..l) when yyerror
function is invoked. For example:
A = aB | bB
B = b | c
etc
if the string in input is "ad$", in yyerror I would capture correct
tokens
expected...like b or c.
Ho I can make
Hi
I would know the expected token in a parser (GLR also..l) when yyerror
function is invoked. For example:
A = aB | bB
B = b | c
etc
if the string in input is "ad$", in yyerror I would capture correct tokens
expected...like b or c.
Ho I can make that?
Many Thanks
Bye