Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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.

Regards.
Mohamed Iguernelala
http://ocamlwizard.lri.fr/