Parser factory chooses parser class based on filepath 🟩

This commit is contained in:
Daniel Roth 2026-01-19 11:13:14 +00:00
parent c073a4cb43
commit 4d36fce83d

View file

@ -1,4 +1,8 @@
from backend.condition.parsing.parser import Parser
from backend.condition.parsing.lbwf_parser import LbwfParser
def select_parser(filepath: str) -> Parser:
raise NotImplementedError
path = filepath.lower()
if "lbwf" in path:
return LbwfParser()