help-bison
[Top][All Lists]
Advanced

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

Re: type clash on default action errors


From: Hans Aberg
Subject: Re: type clash on default action errors
Date: Thu, 26 Oct 2000 19:27:56 +0200

At 14.19 +0200 0-10-26, Akim Demaille wrote:
>When you write things like:
>
>exp:    NUM;
>
>then Bison reads it as
>
>exp: NUM { $$ = $1; };
>
>since that the default actiob.

Actually, I think that the Bison default should be that there is no such
default action, because in the cases were I have forgotten to put in an
action, say on an empty rule, it has screwed up the parsing.

So if an action is not supplied, that should be an error. Then Bison should
have special options that allows one to use the old defaults, and to check
the grammar.

  Hans Aberg
                  * Email: Hans Aberg <mailto:address@hidden>
                  * Home Page: <http://www.matematik.su.se/~haberg/>
                  * AMS member listing: <http://www.ams.org/cml/>





reply via email to

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