| 11-09-2004, 11:47 AM | #1 |
I attached a small JASS optimization script I made in Perl for AMAI. It might have some value for others too. What it does is optimize some scripts in context of a library script. Like AI scripts with a custom common.ai or map scripts in context of a custom Blizzard.j (as long as ExecuteFunc is not used). It removes whitespace and comments, inlines constants (global variables that are marked as constant), removes unused functions and globals and then shortens the names of variables and functions. |
| 11-10-2004, 03:07 PM | #2 | |
Quote:
nice job, perl can do this? lol |
| 11-10-2004, 03:53 PM | #3 |
Perl is very powerful when you are working with text. I'd say it would be a lot harder to write such a script with another programming language. |
