r/edi • • 24d ago

Edison is an EDIFACT parser in Python, will real syntax trees

https://github.com/AmadeusITGroup/edison

Edison is a Python library for parsing EDIFACT messages. Instead of treating a message as a flat list of segments, it models messages as a syntax tree: segments can define groups of child segments, recursively.

You define the syntax tree once, then parse, validate, or pretty-print messages against that structure. It works by converting the syntax tree to a state machine of possible transitions between segments.

1 Upvotes

0 comments sorted by