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
ODT: a *new* OCaml IDE integrated into Eclipse
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-05-16 (09:33)
From: Soutaro Matsumoto <matsumoto@s...>
Subject: Re: [Caml-list] ODT: a *new* OCaml IDE integrated into Eclipse

> By the way, I already have a parser for ml and mli files,
> based on the ocamlc -dparsetree option.

I think the -dparsetree output is not enought for refactoring purpose.

It may produces same output for these three programs.

  let f x = x+1
  let f = fun x -> x+1
  let f = function x -> x+1

Since I would like to use a syntax tree formatter to produce the result 
of refactoring, the parser and AST should distinguish these three 
programs. (I'm not sure that how existing refactoring editors work. Does 
anyone have any ideas?)

# Of course, the output of -dparsetree is enough for outline-view.

Soutaro Matsumoto