🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #2316

Help with bison: type clash on default action

#2316
From: J. D. S. (Sterling) Babcock
Date: Tue, 01 Nov 1994 20:04
42 lines
2833 bytes
Where should I post questions on bison's YACC interpreter?
In compiling a yacc grammar for VHDL using bison, I get many
errors of the form:

vhdl.yacc:182:  warning:  type clash ('' ' id ') on default action
vhdl.yacc:184:  warning:  type clash ('' ' id ') on default action
vhdl.yacc:185:  warning:  type clash ('' ' id ') on default action
vhdl.yacc:186:  warning:  type clash ('' ' id ') on default action
vhdl.yacc:187:  warning:  type clash ('' ' id ') on default action
... and many more ...

Does this mean that it cannot decide to shift or reduce when it sees
an identifier?  I cannot seem to find a list of error messages on
 http://www.ee.duke.edu:80/cgi-bin/info2www?(bison)
I enclose the lines listed above with a <=- pointing out those lines.
Email replies appreciated.  Thanks!

/**************************************************************************
**** This syntax is derived from a VHDL parser description from 
**** ftp.cs.utwente.nl in pub/src/VHDL/Grammar
**** This is based on  Version 0.15   July 29, 1994
**** Author of YACC transformation: Thomas Dettmer,  Dortmund University
***************************************************************************/
/*** Note that the context-free syntax of VHDL in [LRM] is ambiguous 
**** (and so is not LR(1)) and that the language VHDL makes it impossible to
**** construct a non-ambiguous context-free syntax. Therefore a deterministic
**** parser based on a non-ambiguous context-free syntax has to accept a too
**** large class of inputs. Inputs which are accepted by the parser but are
**** not correct VHDL must be rejected by static semantical checks.
***************************************************************************/

;designator : t_Identifier	     /* Line 181 */
 | t_StringLit                       <=-

;literal    : t_AbstractLit          <=-
 | t_CharacterLit                    <=-
 | t_BitStringLit                    <=-
 | physical_literal_no_default       <=-
 | t_NULL  

;enumeration_literal  : t_CharacterLit
 | t_Identifier  
Technical Details
Message-ID: <396701$a4n@news.duke.edu>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!news.duke.edu!duke.edu!jdsb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c35705f8bc2ff170,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1025b4,c35705f8bc2ff170,start
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1994-11-01 12:41:39 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!news.duke.edu!duke.edu!jdsb
From: jdsb@duke.edu (J. D. S. (Sterling) Babcock)
Newsgroups: gnu.misc.discuss,gnu.gcc.help
Subject: Help with bison: type clash on default action
Date: 1 Nov 1994 20:04:17 GMT
Organization: Duke University EE Dept.; Durham, NC
Lines: 43
Distribution: usa
Message-ID: <396701$a4n@news.duke.edu>
NNTP-Posting-Host: vergina.ee.duke.edu