help-bison@gnu.org
[Top] [All Lists]

Re: Undeclared value type for nonterminals when using multiple value typ

Subject: Re: Undeclared value type for nonterminals when using multiple value types
From: "Laurence Finston"
Date: Tue, 13 Oct 2009 08:07:39 +0200
I always just pick one (`int', but it doesn't really matter).  You don't have 
to set `$$' to a value in a rule.

Laurence Finston


-------- Original-Nachricht --------
> Datum: Mon, 12 Oct 2009 15:05:15 -0400
> Von: Rodrigo Dominguez <roddomi@xxxxxxxxxxx>
> An: help-bison@xxxxxxx
> Betreff: Undeclared value type for nonterminals when using multiple value 
> types

> 
> Hi,
> 
> What is the default data type for nonterminals when using multiple data
> types (%union)? In other words, can I have nonterminals with undefined data
> types (no %type<..>) when using %union? I have seen some grammars use this,
> however, I don't see anything on the manual referring to this scenario.
> 
> I am using Bison 2.3.
> 
> Thank you,
> 
> Rodrigo
>                                         
> _______________________________________________
> help-bison@xxxxxxx http://lists.gnu.org/mailman/listinfo/help-bison

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


_______________________________________________
help-bison@xxxxxxx http://lists.gnu.org/mailman/listinfo/help-bison

<Prev in Thread] Current Thread [Next in Thread>