[Top][All Lists]

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


From: Paul Eggert
Date: Wed, 24 Apr 2002 11:50:59 -0700 (PDT)

> From: Akim Demaille <address@hidden>
> Date: 24 Apr 2002 13:44:17 +0200
> Hm, there must be something I don't understand here.  Do we agree that
> the definition of being trivial, for yystype, is strictly when %union
> is used?

No, it also depends on whether C++ is being used.  The types are
always trivial for C.

> So my suggestion is that reader.c:prepare does something like
> MUSCLE_INSERT_INT ("stype_is_trivial", typed);

OK.  But now I see that there already is a MUSCLE_INSERT_INT
("stype_line", lineno); in the case where `typed' is nonzero.  So
perhaps I could leave reader.c alone, and use `YYSTYPE_LINE' instead

I'll stop here for now, as I'm still not sure I'm building CVS Bison
correctly.  I typically use the Bash grammar as a test case, and the
Bison that I build does not handle the Bash 2.05a grammar correctly:

  $ bison -y -d parse.y
  conflicts:  1 shift/reduce
  /tmp/bsng.aiDD:2537: /opt/sfw/bin/gm4: Warning: Excess arguments to built-in 
`m4_define' ignored

Is there some way to tell Bison to output the m4 input instead of the
m4 output, for debugging purposes?  If not, perhaps there should be.

reply via email to

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