def main(): index = FileIndex(r"C:\Users\Dominik\Documents\LStudioProjects\ma_test", ['.sys', '.fbt', '.res']) parser = ElementParser(r"D:\LOYTEC\L-STUDIO 3.0\Studio\data\Schemas") error_reporter = ValidationErrorReporter() parser.attach('validationError', error_reporter) parser.attach('element', add_to_element_index) iec_elements.initialize(parser) for file in index: parser.parse(str(file)) error_reporter.print_error_list()