Commit Graph

21 Commits

Author SHA1 Message Date
Bryan Bishop 9d68470e0f even better preprocessor formatting 2012-11-30 10:26:49 -06:00
Bryan Bishop 3d8e7a1776 make preprocessor includable as a module
The preprocessor only runs against stdin when __main__ is activated,
instead of always running on stdin. This allows the file to be included
in an interactive python session or in other scenarios.
2012-11-30 10:12:27 -06:00
Bryan Bishop 935384f931 update spacing for read_line in preprocessor 2012-11-30 10:04:56 -06:00
Bryan Bishop 44c3eb1ccf make the include macro check better
The include macro is now checked against only the beginning of the line,
and comments in the asm file can say "INCLUDE \"" if they need to. In
addition, the preprocessor now supports INCLUDE lines that are preceded
by a tab character. However, if this included file has multiple lines,
the output will not be automatically aligned with the initial tab. This
might cause problems with rgbasm.
2012-11-30 10:01:33 -06:00
Bryan Bishop 1e6f295573 more preprocessor comments 2012-11-30 09:58:57 -06:00
Bryan Bishop 9b4718d0c7 clean up formatting in preprocessor 2012-11-30 09:56:15 -06:00
Bryan Bishop a1a9fa5560 move allowed_lengths for music macros out
This moves the allowed_lengths setting out of the preprocessor. Special
cases should not be hardcoded in the preprocessor.
2012-11-30 09:54:02 -06:00
padz 3626ddebd1 implement music macros; INCLUDE injection in pre 2012-11-30 05:58:00 -05:00
IIMarckus fa019d2f51 Add some functions from Mobile Stadium. 2012-07-07 19:51:02 -06:00
Bryan Bishop 01756965ba remove extra whitespace from preprocessor.py 2012-05-23 03:14:15 -05:00
Bryan Bishop a049ef74f8 use db instead of item_frag on ItemFragment remote chunks 2012-05-16 21:16:28 -05:00
Bryan Bishop 611016ae40 add a 'correction' to preprocessor to account for storetext issues 2012-05-16 18:34:03 -05:00
Bryan Bishop 079afeea46 fix preprocessor/givepoke for variable-number-of-parameter macros 2012-05-16 12:44:55 -05:00
Bryan Bishop e905f9f1f1 better movement command/macro support 2012-05-13 21:53:48 -05:00
Bryan Bishop e3b6c0f4d2 preprocessor compatibility with text commands 2012-05-05 13:30:22 -05:00
Bryan Bishop 57d11561b0 looks like text commands might mess up the preprocessor? 2012-05-05 02:48:44 -05:00
Bryan Bishop 81e950c2d1 add ItemFragment to macros in preprocessor 2012-04-27 17:35:32 -05:00
Bryan Bishop e5586a5aa2 text preprocessor now supports ending-apostrophes in text 2012-04-27 16:56:24 -05:00
Bryan Bishop 45c41795f5 possibly fix preprocessor/checkmoney issues 2012-04-27 16:33:37 -05:00
Bryan Bishop 2cb6e41831 clean up the preprocessor imports 2012-04-26 17:41:10 -05:00
Bryan Bishop 849c0d132d rename textpre.py -> preprocessor.py 2012-04-26 16:58:20 -05:00