English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Re: [Caml-list] syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-02-06 (12:24)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: [Caml-list] syntax

On Tue, Feb 05, 2002 at 01:47:31PM -0800, Michael Vanier wrote:

> I've looked at the revised syntax, and I like most of what I see (except
> for the use of x.val instead of !x).  One question: how many shift-reduce
> conflicts does the revised syntax have?  

There is no notion of shift-reduce in recursive descent parsing: the
system tries to shift until it cannot do it any more.

To decide to "reduce", you must know which non-terminal called you,
but you don't have this information, exactly like in a function, you
don't know which function called you.

To know if there are shift-reduce or reduce-reduce conflicts in the
revised syntax, one should rewrite it under yacc.

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr