give preprocessor.py a main()
This commit is contained in:
@@ -658,8 +658,11 @@ def preprocess(macro_table, lines=None):
|
|||||||
for l in lines:
|
for l in lines:
|
||||||
read_line(l, macro_table)
|
read_line(l, macro_table)
|
||||||
|
|
||||||
# only run against stdin when not included as a module
|
def main():
|
||||||
if __name__ == "__main__":
|
|
||||||
macros = load_pokecrystal_macros()
|
macros = load_pokecrystal_macros()
|
||||||
macro_table = make_macro_table(macros)
|
macro_table = make_macro_table(macros)
|
||||||
preprocess(macro_table)
|
preprocess(macro_table)
|
||||||
|
|
||||||
|
# only run against stdin when not included as a module
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
Reference in New Issue
Block a user