Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/sof 6598 clean up parsers implementation (DRAFT) #82

Open
wants to merge 31 commits into
base: dev
Choose a base branch
from

Conversation

VsevolodX
Copy link
Member

Draft PR.

src/parsers/init.js Outdated Show resolved Hide resolved
@@ -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.

2 participants