jdf/processing.py — pull request #51 by tildebyte (2014-04-24 19:30:11+00:00)
Title: More regexs for pde2py: closes #42

Now with 100% more comments :D
Try hard to maintain proper indentation in the midst of all of this, for
obvious reasons.
Fix up Java 'for' constructs (cue 'Ode To Joy': this actually works
pretty well).
Touched up 'if'/'else if'/'else'.
Fix but comment imports (i.e., from 'import java.util.*' to '# from
java.util import')
Remove more type identifiers.
Add 'public void' to set of strings to remove from 'defs' etc.
Fix issue with this->self not working properly in some places.
Remove truly annoying 'float'... specifiers? I don't even know what this
is: '0.09f'
Remove 4+ consecutive blank lines (I'm super-annoyed that fixing 'for's
and 'if's seems to have worsened the multiple-blank-line issue).
Remove spaces:
Trailing/only characters on line.
Around operators (this definitely needs work)
After commas.
Before colons.
Around parens.

TODO: Inline comments. To wit: 2 spaces before '#', one after. I have
too much of a migraine to go on :P