From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA18217; Tue, 3 Sep 2002 09:08:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA15827 for ; Tue, 3 Sep 2002 09:08:43 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g8378gr05766 for ; Tue, 3 Sep 2002 09:08:42 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id JAA32662 for caml-list@inria.fr; Tue, 3 Sep 2002 09:08:42 +0200 Date: Tue, 3 Sep 2002 09:08:42 +0200 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] Camlp4-tutorial-Example Message-ID: <20020903090842.B30173@verdot.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from oliver@first.in-berlin.de on Mon, Sep 02, 2002 at 10:52:27PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Mon, Sep 02, 2002 at 10:52:27PM +0200, Oliver Bandel wrote: > What I do not understand: > This calculator knows that * and / have higher Priority > than + and -. > How is this achieved? By the order of the rules. The rules with same priority are grouped together: [ ... | ... | ... ] and there is another level of parentheses (of bracket parentheses) separated by vertical bars to indicate the priority: [ [ ... | ... | ... ] (* lowest priority *) | [ ... | ... | ... ] ... | [ ... | ... | ... ] (* highest priority *) ] > I didn't find any entries, that provide priority-distinction > between +,-,*,/. Forget Yacc! :-) > Is the Grammar-Module magic? > (Gramagic?) What do you mean by "magic"? -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners