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 Digest, Vol 41, Issue 26
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-15 (12:12)
From: iguern-a@y...
Subject: Re : Caml-list Digest, Vol 41, Issue 26
> - GLR instead of LR(1) : this gives much more elegant description of the 
> grammar (and the possibiliy of ambigous grammar) and there
> is never a conflict. These are replaced by multiple parse trees (you can 
> choose a merge function that will report that as an error, if you think
> your grammar should not be ambiguous).

Great ! In Ocamlwizard, we've patched an ocaml parser (3.10.2) which recovers
on errors located at the end of file (using the EOF token). We've also consider using the error token but it's more difficult (because of ambiguities). 

Since dypgen generates multiple parse trees, It could be easier to implement this feature. I hope I'll have time to try it.

Mohamed Iguernelala