Initialize parser with CDDL file path.
(self, cddl_path: str)
| 1032 | """Parse CDDL specification files.""" |
| 1033 | |
| 1034 | def __init__(self, cddl_path: str): |
| 1035 | """Initialize parser with CDDL file path.""" |
| 1036 | self.cddl_path = Path(cddl_path) |
| 1037 | self.content = "" |
| 1038 | self.modules: dict[str, CddlModule] = {} |
| 1039 | self.definitions: dict[str, str] = {} |
| 1040 | self.event_names: set[str] = set() # Names of definitions that are events |
| 1041 | self._read_file() |
| 1042 | |
| 1043 | def _read_file(self) -> None: |
| 1044 | """Read and preprocess CDDL file.""" |
nothing calls this directly
no test coverage detected