Commit Graph

87 Commits

Author SHA1 Message Date
30fd84d452 preprocessor: import commands sound and noise 2014-02-06 21:22:44 -05:00
7f0f21b1fc Get rid of globals.asm
This breaks the build until labels are exported again!
2014-02-01 13:55:48 -05:00
65efbe55e7 preprocessor: actually call update_globals()
This is about to be removed, but it may as well work first.
2014-02-01 02:47:25 -05:00
e56aa096a3 preprocessor: rename macro class Wait to BattleAnimWait 2013-12-25 06:57:45 -05:00
dd7989cef8 preprocessor: battle animation macros 2013-12-19 04:49:20 -05:00
94052ab5b9 prequeue: dont initialize a new preprocessor for each file 2013-12-09 01:40:04 -05:00
2143b5479e import some new sound classes from pokemontools 2013-11-07 01:15:20 -05:00
2917a28242 fix a typo related to configuration 2013-09-26 17:26:00 -05:00
fc90df9895 bump pokemontools to v1.4.1
Note that gbz8disasm doesn't work at the moment.
2013-09-24 10:46:53 -05:00
5c46972ebe update preprocessor to use a class 2013-09-02 10:41:50 -05:00
12c1d874b9 Merge branch 'master' into refactor-preprocessor
Conflicts:
	preprocessor.py

Also bump the extras submodule to a version of pokemontools with a
suitable version of the preprocessor. The changes from 'master' for
preprocessor.py have been inserted into pokemontools prior to the
submodule bump.
2013-08-31 12:47:23 -05:00
c0a01c9982 Merge pull request #185 from kanzure/preprocessor-performance
Preprocessor performance improvements.

This recliams 0.4 seconds.
2013-08-31 10:19:17 -07:00
6191559c53 give preprocessor.py a main() 2013-08-31 12:12:09 -05:00
a74462bc52 even better performance for read_line 2013-08-31 12:03:48 -05:00
473bd192d9 better read_line performance in preprocessor
Jump out of read_line early if the line is an empty string or a newline.
2013-08-31 11:57:01 -05:00
70be18427b don't call load_pokecrystal_macros 2000 times
Also, don't call make_macro_table 2000 times by only calling it once and
passing the result.
2013-08-31 11:04:27 -05:00
2fd792bbda move macro sanity check into separate function
This moves out from macro_translator the macro/param length sanity check
into a function called check_macro_sanity.
2013-08-31 10:39:49 -05:00
a429bce189 Merge branch 'master' into preprocessor-macro-function 2013-08-31 10:22:35 -05:00
ba67d3ba46 Merge branch 'master' into preprocessor-asserts 2013-08-31 10:17:25 -05:00
5815edf382 refactor preprocessor macros into a function
Remove the "macros" global and instead use a function to construct a
list of macros.
2013-08-31 10:13:17 -05:00
ebb591a7ec make a MacroException more verbose in preprocessor 2013-08-31 09:56:24 -05:00
93514b1862 convert a macro_translator assert in preprocessor
AssertionError -> PreprocessorException
2013-08-31 09:54:03 -05:00
95f7270141 raise MacroException instead of Exception
A more specific exception means that error handling can actually work in
the future.
2013-08-31 09:51:31 -05:00
2c22d9220c fix "raise Exception" formatting in preprocessor 2013-08-31 09:50:17 -05:00
ecedde1993 replace an assert in macro_translator
Use a MacroException instead of an AssertionError.
2013-08-31 09:46:11 -05:00