feat: 多轮运行 + GCOV 合并 + JSON 出力 + DesignDataGenerator
This commit is contained in:
@@ -653,12 +653,12 @@ def parse_file_section(source: str) -> dict:
|
||||
|
||||
|
||||
def scan_open_statements(source: str) -> dict:
|
||||
"""?? OPEN ????? {?????: 'INPUT'|'OUTPUT'|'I-O'}"""
|
||||
"""Parse OPEN statements, returns {file_name: 'INPUT'|'OUTPUT'|'I-O'}.
|
||||
Handles multi-line OPEN (e.g. OPEN INPUT X\\n OUTPUT Y.)."""
|
||||
dirs = {}
|
||||
for m in re.finditer(
|
||||
r'OPEN\s+((?:INPUT|OUTPUT|I-O)\s+[\w\s-]+'
|
||||
r'(?:\s+(?:INPUT|OUTPUT|I-O)\s+[\w\s-]+)*)',
|
||||
source, re.IGNORECASE
|
||||
r'OPEN\s+((?:INPUT|OUTPUT|I-O)\s+[\w\s-]+?)\.',
|
||||
source, re.IGNORECASE | re.DOTALL
|
||||
):
|
||||
full = m.group(1)
|
||||
full = re.sub(r'\s+', ' ', full)
|
||||
|
||||
Reference in New Issue
Block a user