help-bison
[Top][All Lists]
Advanced

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

Print expected tokens in yyerror function.


From: Necrosoft
Subject: Print expected tokens in yyerror function.
Date: Sat, 8 Mar 2008 17:47:36 +0100

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


reply via email to

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