jimweirich / sorcerer

Generate Ruby source from a Ripper style AST
http://github.com/jimweirich/sorcerer
MIT License
98 stars 11 forks source link

Additional code formatting features #11

Open misfo opened 11 years ago

misfo commented 11 years ago

Since experiencing how freeing a tool like gofmt is when run automatically on all code, I've been wishing Ruby had a similar tool. Having a tool do formatting for you takes one thing off your mind, however small, when writing code.

Would you have any interest in pull requests for any of the following?:

To make a tool like gofmt would require a CLI, too. But maybe that would make more sense as a separate project that depends on sorcerer...

jimweirich commented 11 years ago

And yes, I think a separate tool depending on Sorcerer would be a good idea.

misfo commented 11 years ago

Ugh... It looks like the first two aren't doable with the sexps alone. There probably some way to do it if we were also given the results of Rippers lexer, but that might be a lot of work...