Neat. Playing with parsers is fun!<p>FWIW, a similar tool exists that works with most C-style languages, `uncrustify`. Might be worth looking into as well?<p><a href="http://uncrustify.sourceforge.net" rel="nofollow">http://uncrustify.sourceforge.net</a>