3 comments

  • CharlesW18 minutes ago
    In case other HNers have also not heard of this: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;EDIFACT" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;EDIFACT</a>
  • DonaldPShimoda25 minutes ago
    What is a &quot;real&quot; syntax tree? I wonder if the intent was &quot;concrete&quot; (the contrast to an abstract syntax tree), or if it&#x27;s meant colloquially (as in &quot;you really get a syntax tree&quot; or &quot;you get an actual syntax tree&quot;) rather than as a technical term.
  • alexprengere2 days ago
    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.<p>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.