Load a .lap file and return a queryable document.
(self, path: str)
| 91 | """Main LAP client for loading LAP documents.""" |
| 92 | |
| 93 | def load(self, path: str) -> LAPDoc: |
| 94 | """Load a .lap file and return a queryable document.""" |
| 95 | p = Path(path) |
| 96 | if not p.exists(): |
| 97 | raise FileNotFoundError(f"LAP file not found: {path}") |
| 98 | raw = p.read_text() |
| 99 | spec = parse_lap(raw) |
| 100 | return LAPDoc(spec, raw) |