refactor: add base parse module

This commit is contained in:
2026-09-17 00:47:01 +03:00
parent 65b6adbf16
commit 9ae9d1be14
8 changed files with 219 additions and 203 deletions
+13
View File
@@ -0,0 +1,13 @@
from typing import Generic, TypeVar
D = TypeVar("D")
R = TypeVar("R")
class ParseError(Exception):
pass
class Parser(Generic[D, R]):
def parse(self, data: D) -> R:
raise NotImplementedError