Beta test indent.ex?

new topic     » topic index » view thread      » older message » newer message

I am wondering if a few people would beta test indent.ex for me? It's a pretty
hard program to test because I always code with the same style. I am thinking of
adding a few more features, cleaning the code up, adding some command line
switches and releasing it as a tool with Euphoria.

What it does is indents Euphoria source. Right now it uses tabs as indent
characters. One of the options will be tab/space if space how many. Anyway, it
should take totally malformed euphoria code (malformed as in not indented
correctly) and indent it.

Right now it saves the source as input_file.new ... so if you pass it hello.e
you will have a new file hello.e.new but be careful please.

Usage:

exu/exwc indent.ex filea.e fileb.ex filec.exw ....

if 10 then
puts(1, "John\n")
                      puts(1, "Jane\n")
   end if


should turn out:

if 10 then
    puts(1, "John\n")
    puts(1, "Jane\n")
end if


I've tested it on my code, the includes in euphoria/include as well as a few in
euphoria/source

The URL is: http://jeremy.cowgar.com/files/indent.ex

Thanks!

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu