Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
From: Hugo Ferreira <hmf@i...>
Subject: Re: [Caml-list] Favorite OCaml editor?

To the OP:

Eclipse + OcalIDE

Alain Frisch wrote:
> 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?

This is indeed a thorny issue. The developer of OcalIDE is taking
another stab at this but this time using Camlp4 [1].

BTW the way the Haskell eclipse plug-in [2] also has to deal with such
issues. In their case they use a generic library and API [3] that should
be usable by any number of IDEs and editors (already used by emacs). May
be of interest to you also.


Hugo F.

> Alain
> _______________________________________________
> Caml-list mailing list. Subscription management:
> Archives:
> Beginner's list:
> Bug reports: