def main(): logging.basicConfig(level=logging.WARNING,format='%(asctime)s - %(levelname)s - %(message)s',stream=sys.stdout) parser_runner.parse_all_units() parser_runner.visit_all_units(create_c_code_for_file) parser_runner.visit_all_units(write_c_code_files) create_swingame_h()
def main(): logging.basicConfig(level=logging.WARNING,format='%(asctime)s - %(levelname)s - %(message)s',stream=sys.stdout) parser_runner.parse_all_units() parser_runner.visit_all_units(create_pas_code_for_file) parser_runner.visit_all_units(create_c_code_for_file) # needed for Type.h and SGSDK.h parser_runner.visit_all_units(write_pas_code_files)
def main(): # coppy create_sql_menu_insert() create_sql_menu_items() create_sql_types_items() logging.basicConfig(level=logging.WARNING,format='%(asctime)s - %(levelname)s - %(message)s',stream=sys.stdout) # Parse all files ready for use... print ' Parsing all pas units...' parser_runner.parse_all_units() # Extract method/type details and create identifiers/Types pages idc = IdentifierCollector() # Create all unit (module) pages UnitPresenter(idc) # Create the index.html page IndexPresenter(idc) # Create indentifiers.html and Types.html pages create_identifiers_doc(idc) create_types_doc(idc) end_create_sql_menu_script() end_create_sql_menu_items() end_create_sql_menu_types()
def main(): global classes_file_writer classes_file_writer = FileWriter('%s/SGTypes.h'% _out_path) classes_file_writer.writeln('#import "Types.h"') logging.basicConfig(level=logging.WARNING,format='%(asctime)s - %(levelname)s - %(message)s',stream=sys.stdout) parser_runner.parse_all_units() parser_runner.visit_all_units(lang_c.create_c_code_for_file) parser_runner.visit_all_units(lambda the_file, other: lang_c.write_c_code_files(the_file, other, _out_path)) parser_runner.visit_all_units(_file_visitor) classes_file_writer.close() create_swingame_h()