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?


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

Reply via email to