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: Akim Demaille
Subject: Re: type clash on default action errors
Date: 26 Oct 2000 14:19:23 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Bruce" == Bruce Haxton <address@hidden> writes:

Bruce> Hi, I am receiving the error 'type clash on default action'
Bruce> when I attempt to give my terminal tokens types. Why should
Bruce> this be so - I can find no reason for it in the documentation?

When you write things like:

exp:    NUM;

then Bison reads it as

exp: NUM { $$ = $1; };

since that the default actiob.  If the types of exp and NUM are
incompatible, then you have a type mismatch.



reply via email to

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