Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4: precedence, LEFTA, NONA, etc.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] camlp4: precedence, LEFTA, NONA, etc.
What about this quote from the camlp4 manual?

"An entry is composed of entry precedence levels, the first one being  
the least precedent and the last one the most."

I'm assuming that my expr counts as one rule where '+' and '=' have  
lesser precedence than 'and' and '*' since those follow after.

On Mar 12, 2009, at 9:13 AM, blue storm wrote:

> To my understanding, precendence levels correspond to the level you
> define in the grammar, in the given order : in your case, you have
> "=", "+" at the same level, with higher precendence than "And" and
> "*".

---
http://tinyco.de
Mac, C++, OCaml