MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / parse_html

Function parse_html

etc/scripts/docenizers/docenizer-evm.py:99–109  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

97
98
99def 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
112def main():

Callers 1

mainFunction · 0.70

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected