Skip to content

Refactor tag/value parser for the new data model #382

@nicoweidner

Description

@nicoweidner

The tag/value parser should be refactored and adapted to the new data model, similar to how it was done for json in #305. The old code can be found at https://github.com/spdx/tools-python/tree/b8fde35e141daf082b8b0fe32f875da06e6316e6/spdx/parsers (see the tagvalue modules as well as the lexer package), though it was pretty hard to understand - hopefully we can improve in that regard.

@meretp already did a quick initial investigation and came across https://github.com/webmaven/python-parsing-tools. It may be worth evaluating e.g. pyparsing as an alternative parser library if it makes the code clearer and easier to understand.

Metadata

Metadata

Assignees

Labels

parserIssues related to the parser layer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions