Skip to content

Conversation

@VsevolodX
Copy link
Member

Draft PR.

@@ -1,26 +1,19 @@
import { STRUCTURAL_INFORMATION_FORMATS } from "./enums";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file really contains the Factory - should be

const parser = ParserFactor.getParserByDetectingTextFormat(text);
return parser.parse(text);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to implement this now in here, we need to touch and change calls to JSONParser, PoscarParser etc and create new format detection function

@timurbazhirov timurbazhirov changed the title Feature/sof 6598 clean Feature/sof 6598 clean up parsers implementation (DRAFT) Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants