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
Favorite OCaml editor?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-01-05 (10:27)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] Favorite OCaml editor?
On 05/01/2010 09:13, Jon Harrop wrote:
> I think the best way to write a decent editor for OCaml would be to write one
> using LablGTK for the GUI and camlp4 to parse OCaml code.

It is indeed very tempting to reuse an existing OCaml parser in order to 
support syntax-related features (indentation, coloring, and whatnot); 
especially if you can then support syntax extension properly.

The problem is that the editor is supposed to work even with partial or 
syntactically invalid code, which is not the case for the OCaml parsers 
(built-in or Camlp4-based). It would be great to have a parser for OCaml 
syntax, with robust error recovery. Has anyone worked on such a project?