Erlang Refactoring
Richard Carlsson
richardc@REDACTED
Tue Jun 27 13:49:55 CEST 2006
Yes, the igor module in syntax tools has a rename function,
which can take a set of modules and rename them, updating all
intermodule references. It will print some warnings if there
are calls to spawn or apply that you may need to inspect
manually afterwards (if module names are being passed around).
Try it - it sounds like the best match for what you want to do.
http://www.erlang.org/doc/doc-5.5/lib/syntax_tools-1.5.0/doc/html/igor.html#rename-3
/Richard
Vlad Dumitrescu wrote:
> Hi Joe,
>
> Have you looked at igor, which is included in syntax_tools?
>
> regards,
> Vlad
>
>
> On 6/21/06, Joe Armstrong (AL/EAB) <joe.armstrong@REDACTED> wrote:
>>
>> Are there any Erlang refactoring programs that I can
>> download and use?
>>
>> I want to do the following:
>>
>> I have a directory with Erlang modules
>>
>> glurk.erl
>> foo_server.erl
>> ...
>>
>> And a Makefile
>>
>> And I have a renaming scheme
>>
>> Old Name New Name
>> glurk.erl foo_bar_krulg.erl
>> foo_server.erl foo23_glunker.erl
>> ...
>>
>>
>> I want some program that changes all the filenames and
>> module names in a consistent manner, and which tries
>> to keep the formatting of my programs intact.
>>
>> Is there such a program? - << in the form of a function I
>> evaluate in the Erlang shell - ie with no incomprehensible GUI >>
>>
>> /Joe
>>
>>
>
More information about the erlang-questions
mailing list