mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
9 lines
354 B
Python
9 lines
354 B
Python
from backend.condition.file_type import FileType
|
|
from backend.condition.parsing.parser import Parser
|
|
from backend.condition.parsing.lbwf_parser import LbwfParser
|
|
|
|
def select_parser(file_type: FileType) -> Parser:
|
|
if file_type is FileType.LBWF:
|
|
return LbwfParser()
|
|
|
|
raise ValueError("Unrecognised file type, unable to instantiate Parser")
|