Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2009-03-12 (09:38)
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
> "*".

Mac, C++, OCaml