Thursday, November 13, 2008

Web-based IDE for X Erlang

In one of my previous posts I described a console application that allows the user to interact with X Erlang instance. As the logical next step I wanted to make it more a 'Visual Studio' than a 'DOS prompt'.

After two months of petty bickering I finally settled to use dojo for portability among browsers and ready-to-go widget goodies. Currently, the application allows management of the in-memory filesystem, editing of Erlang code using CodeMirror control and compilation of the code. It even jumps to the correct line in the source 
code when the error message is clicked in the compiler output pane!

The progress is stalled by the capabilities of the X Erlang itself. Now it is not possible to 'pause' a process to observe its internals.

The current version looks like this:


2 comments:

pablo said...

Did you code an Erlang parser for codeMirror?

Maxim Kharchenko said...

pablo, it looked like a huge task to do the complete parser for Erlang just to do nice highlighting. I created a custom highlighter based on a simple tokenizer. That's it.