mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 13:37:03 +03:00
16 lines
294 B
Python
16 lines
294 B
Python
from enum import Enum
|
|
from typing import List, Tuple
|
|
import parser_hex
|
|
|
|
|
|
class RecordType(Enum):
|
|
DATA = 1
|
|
|
|
|
|
def parse_line(line: str, file_extension: str) -> Tuple[RecordType, List[int]]:
|
|
record: Tuple[RecordType, List[int]]
|
|
|
|
if file_extension == ".hex":
|
|
|
|
|
|
return record |