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

[1] http://ocaml.eclipse.free.fr/forum/viewtopic.php?f=1&t=226
[2] http://eclipsefp.sourceforge.net/
[3] http://code.google.com/p/scion-lib/


Hugo F.


> Alain
> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>