bug-bison
[Top][All Lists]
Advanced

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

Re: Java generator fatal error message


From: Akim Demaille
Subject: Re: Java generator fatal error message
Date: Sun, 15 Dec 2013 12:20:42 +0100

Le 13 déc. 2013 à 20:40, Arthur Schwarz <address@hidden> a écrit :

> The following program:
> 
> ----- code -----
> %language "Java"
> %start start
> %token TOKEN
> %%
> start : start '+' TOKEN
>       | TOKEN
>       ;
> %%
> 
> ----- end code -----
> 
> yields the following result:
> x.y: fatal error: "lalr1.java": %defines does not make sense in Java
> 
> There is no %defines in the code. 

Please, when you make bug reports, make them complete.
You did use ‘-d’ in the command line when invoking
Bison, which is equivalent to %defines.  So the message
is inaccurate, agreed, but not plain wrong.

Contributions to improve the error messages, without
cluttering the code, will be gladly accepted.




reply via email to

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