Parser.parse_input#
- abstract Parser.parse_input(lines)[source]#
Parse a list of lines from a file and convert the data into a dictionary.
This function is not intended to be called directly, but should rather be defined by classes inheriting from
Parser
to parse a given file format.- Parameters:
- lineslist of str
The lines of a structure file to parse.
- Returns:
- dict
A dictionary containing the parsed data.