Skip to main content

Crate edifact_parser

Crate edifact_parser 

Source
Expand description

Streaming EDIFACT tokenizer and SAX-style event-driven parser.

This crate provides a standalone EDIFACT parser with no BO4E dependency. It can be used by anyone in the Rust ecosystem for generic EDIFACT parsing.

§Architecture

The parser uses a SAX-style streaming model:

  1. Tokenizer splits raw bytes into segments
  2. Parser routes segments to handler callbacks
  3. Handler accumulates state as needed

Structs§

DetectResult
Result of a successful format-version detection.
EdifactStreamParser
Streaming EDIFACT parser.
EdifactTokenizer
Tokenizes raw EDIFACT byte input into segment strings.
SegmentBuilder
Builds RawSegment instances from raw segment strings.

Enums§

DetectError
Errors returned by detect_format_version.
ParseError
Errors that can occur during EDIFACT parsing.

Traits§

EdifactHandler
Trait for handling EDIFACT parsing events.

Functions§

detect_format_version
Detect the BDEW format version of an EDIFACT message.