parser

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser handles the parsing of EDIFACT tokens into message structures

func NewDefaultParser

func NewDefaultParser() *Parser

NewDefaultParser creates a new parser with default EDIFACT configuration

func NewParser

func NewParser(config model.EDIFACTConfig) *Parser

NewParser creates a new parser with the given configuration

func (*Parser) ParseSegment

func (p *Parser) ParseSegment(segmentStr string) (*model.Segment, error)

ParseSegment parses a single segment string

func (*Parser) ParseString

func (p *Parser) ParseString(input string) (*model.Message, error)

ParseString parses an EDIFACT string into a Message structure

func (*Parser) ValidateMessage

func (p *Parser) ValidateMessage(message *model.Message) error

ValidateMessage performs basic validation on a parsed message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL