Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-08-31 | Merge pull request #185 from kanzure/preprocessor-performance | Bryan Bishop | |
Preprocessor performance improvements. This recliams 0.4 seconds. | |||
2013-08-31 | give preprocessor.py a main() | Bryan Bishop | |
2013-08-31 | even better performance for read_line | Bryan Bishop | |
2013-08-31 | better read_line performance in preprocessor | Bryan Bishop | |
Jump out of read_line early if the line is an empty string or a newline. | |||
2013-08-31 | don't call load_pokecrystal_macros 2000 times | Bryan Bishop | |
Also, don't call make_macro_table 2000 times by only calling it once and passing the result. | |||
2013-08-31 | move macro sanity check into separate function | Bryan Bishop | |
This moves out from macro_translator the macro/param length sanity check into a function called check_macro_sanity. | |||
2013-08-31 | Merge branch 'master' into preprocessor-macro-function | Bryan Bishop | |
2013-08-31 | Merge branch 'master' into preprocessor-asserts | Bryan Bishop | |
2013-08-31 | refactor preprocessor macros into a function | Bryan Bishop | |
Remove the "macros" global and instead use a function to construct a list of macros. | |||
2013-08-31 | make a MacroException more verbose in preprocessor | Bryan Bishop | |
2013-08-31 | convert a macro_translator assert in preprocessor | Bryan Bishop | |
AssertionError -> PreprocessorException | |||
2013-08-31 | raise MacroException instead of Exception | Bryan Bishop | |
A more specific exception means that error handling can actually work in the future. | |||
2013-08-31 | fix "raise Exception" formatting in preprocessor | Bryan Bishop | |
2013-08-31 | replace an assert in macro_translator | Bryan Bishop | |
Use a MacroException instead of an AssertionError. | |||
2013-08-31 | generic preprocessor-specific exception classes | Bryan Bishop | |
These are basic python Exception subclasses that can be used to throw more specific errors and exceptions from within the preprocessor. AssertionError is not a good idea. | |||
2013-08-31 | remove the do_macro_sanity_check global | Bryan Bishop | |
2013-08-31 | remove the show_original_lines global | Bryan Bishop | |
2013-08-31 | remove an Exception from preprocessor | Bryan Bishop | |
It wasn't meant to be left in there anyway. | |||
2013-08-30 | remove ItemFragment from preprocessor | Bryan Bishop | |
It's not required. see #178 | |||
2013-08-30 | remove "skippable_macros" from preprocessor | Bryan Bishop | |
The preprocessor no longer has the concept of skippable_macros and now always skips any line that starts with "db" or "dw" because neither of these should be treated as macros. fixes #178 | |||
2013-08-30 | HACK: re-instate the ItemFragment macro hack | Bryan Bishop | |
This is to fix the preprocessor temporarily. Maybe ItemFragment can be removed completely. | |||
2013-08-28 | two more unused imports from preprocessor | Bryan Bishop | |
2013-08-28 | don't use globals in the preprocessor | Bryan Bishop | |
Macros are now passed around as lists and dicts. | |||
2013-08-28 | use generic skippable macros in preprocessor | Bryan Bishop | |
This removes TextEndingCommand from the preprocessor. Instead, there is a generic concept of a skippable type of macro like "db". This adds SkippableMacro to the preprocessor. | |||
2013-08-28 | don't directly reference two macro classes | Bryan Bishop | |
Ideally the macro classes will be removed from the preprocessor core soon, there's no reason they should be infecting these functions. | |||
2013-08-28 | remove MoneyByteParam from preprocessor | Bryan Bishop | |
It didn't belong in there. All of the references were removed. | |||
2013-08-28 | Merge branch 'master' into remove-another-moneybyteparam-special-case | Bryan Bishop | |
2013-08-28 | remove another MoneyByteParam special case | Bryan Bishop | |
This updates the preprocessor to just look for a from_asm method on the class for the parameter it's processing. If there's a from_asm method, then it uses it to spit out the right asm. | |||
2013-08-28 | remove a special case for MoneyByteParam | Bryan Bishop | |
The preprocessor should ideally have no special cases for macros at all in the first place. But it does. This one doesn't seem to be necessary. | |||
2013-08-27 | Merge branch 'master' into remove-extras | Bryan Bishop | |
2013-08-03 | fix preprocessor imports for the latest submodule | Bryan Bishop | |
I am surprised this worked. Maybe it's not actually working, and I just have cached files everywhere. | |||
2013-07-31 | jp char ァ | yenatch | |
2013-07-10 | chars: ▷ | yenatch | |
2013-06-25 | don't mix tabs/whitespace | Bryan Bishop | |
2013-06-25 | pre: restore separate_comment's behavior | yenatch | |
2013-06-21 | preprocess asm files individually | yenatch | |
this fixes a lot of previous hacks first off, rgbds requires that labels from includes be marked as globals. instead, 3626ddeb stuffed includes into the parent file in the preprocessor. this meant one huge file got preprocessed every time, adding an additional ten seconds to compile time. running the preprocessor once for each file would create too much overhead, so a list is fed into prequeue.py, which then makes calls to preprocessor.py. this paves the way for compiling source files separately some day. next, compiling previously required `make clean` to be executed first. f3340de6 touched main.asm to force a fresh compile instead. this behavior has been reverted. now, `make all` will only attempt to recompile if a source file has changed. preprocessor.py has some marginal changes. prequeue.py is created to keep the original functionality of preprocessor.py intact. so many files are preprocessed on first compile (1951 as of this commit) that the prequeue call has been hidden. compile time is reduced to 15-30 seconds on first compile, and 5-10 seconds subsequently. the majority of this time is spent in rgbasm. | |||
2013-05-15 | preprocessor: minor optimization in separate_comment | yenatch | |
2013-05-11 | preprocessor: print macro automatically inserts newlines | yenatch | |
2013-05-06 | Merge pull request #126 from yenatch/master | Bryan Bishop | |
map scripts + ai + disabled line ending correction | |||
2013-05-01 | downward triangle character 0xee | yenatch | |
2013-04-27 | Merge yenatch/master. | Bryan Bishop | |
2013-03-29 | dump move effects | yenatch | |
2013-03-21 | fix docstring formatting everywhere | Bryan Bishop | |
2013-03-01 | include some http ascii from the ROM | Bryan Bishop | |
2013-01-27 | clean up the preprocessor macro list | Bryan Bishop | |
2013-01-23 | allow labels and includes on the same line | yenatch | |
2013-01-10 | speed up text conversion in preprocessor | Bryan Bishop | |
2013-01-10 | combine multiple calls to sys.stdout.write | Bryan Bishop | |
2013-01-10 | disable macro error checking by default | Bryan Bishop | |
2013-01-10 | make include_file faster in the preprocessor | Bryan Bishop | |