(directory)
| 97 | |
| 98 | |
| 99 | def parse_html(directory): |
| 100 | print("Parsing instructions...") |
| 101 | instructions = [] |
| 102 | try: |
| 103 | with open(os.path.join(directory, ARCHIVE_DESC_NAME), encoding='utf-8') as description_file: |
| 104 | with open(os.path.join(directory, ARCHIVE_MNEM_NAME), encoding='utf-8') as mnemonic_file: |
| 105 | instructions = parse(description_file, mnemonic_file) |
| 106 | except Exception as e: |
| 107 | print(f"Error parsing files:\n{e}") |
| 108 | |
| 109 | return instructions |
| 110 | |
| 111 | |
| 112 | def main(): |