help-bison
[Top][All Lists]
Advanced

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

Re: Precedence & Associativity


From: Hans Aberg
Subject: Re: Precedence & Associativity
Date: Thu, 13 Jan 2005 00:08:41 +0100
User-agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6

Compile your grammar using the --verbose option, and look into the .output
file for the shift/reduce conflict rules. Then set token precedences for the
tokens closest to the "." in these conflicts. You probably have to set token
precdences for "[", "]", and all the tokens in your <E> (alt. <T>)
variables.


At 22:48 +0000 2005/01/11, George Harokopos wrote:
>Dear Sir/Madam,
>
>I would be grateful if you could provide me with some information about a
>question described below.
>I need to specify the precedence and associativity of the operator
>'application' used in Bison. In particularly there are the following
>application types:
>
><T><T>, for the type language,
>
>and
>
><E><E>(term application)
><E>"["<T>"]" (type application), for the computation language.
>
>The precedence and associativity of the operator 'application' is given in
>the table of operators.
>I cannot find a way of declaring its precedence and associativity, as there
>is not a special symbol for this operator and both <T> and <E> are
>non-terminal symbols.
>
>Thank you in advance.
>
>Best wishes
>George
>
>_________________________________________________________________
>Express yourself instantly with MSN Messenger! Download today it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
>
>
>_______________________________________________
>address@hidden http://lists.gnu.org/mailman/listinfo/help-bison






reply via email to

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