Liking cljdoc? Tell your friends :D

com.breezeehr.edi-serde


collect-extra-elementsclj

(collect-extra-elements r)

Drains the rest of a segment, returning the elements no parser claimed. A composite comes back as a vector of its components.

The case used to have two branches and no default, so an undeclared composite ended the parse with No matching clause: START_COMPOSITE -- an IllegalArgumentException naming the event and nothing else, from a function whose whole job is to be tolerant of what it does not recognise. Anything still unaccounted for now says where it was.

Drains the rest of a segment, returning the elements no parser claimed. A
composite comes back as a vector of its components.

The `case` used to have two branches and no default, so an undeclared
composite ended the parse with `No matching clause: START_COMPOSITE` -- an
IllegalArgumentException naming the event and nothing else, from a function
whose whole job is to be tolerant of what it does not recognise. Anything
still unaccounted for now says where it was.
sourceraw docstring

consume-compositeclj

(consume-composite r)

Drains what is left of the current composite and steps past its END_COMPOSITE.

It used to advance only when the reader was already sitting exactly on END_COMPOSITE, so a composite carrying more components than the schema declares left the reader inside it and desynchronised everything after.

Drains what is left of the current composite and steps past its
END_COMPOSITE.

It used to advance only when the reader was already sitting exactly on
END_COMPOSITE, so a composite carrying more components than the schema
declares left the reader inside it and desynchronised everything after.
sourceraw docstring

consume-segmentclj

(consume-segment r)
source

datetime-multiformatclj

(datetime-multiformat formats)
source

default-input-factoryclj

source

default-output-factoryclj

source

edi-dateclj

source

edi-timeclj

source

empty-component-unparserclj

(empty-component-unparser cnt)
source

empty-element-unparserclj

(empty-element-unparser cnt)
source

first-segmentclj

(first-segment sch)
source

fooclj

(foo x)

I don't do a whole lot.

I don't do a whole lot.
sourceraw docstring

lookahead-readerclj

(lookahead-reader r)

A reader a parser can read one segment ahead on. make-parser wraps its reader itself; call this only to run a loop or segment parser directly.

A reader a parser can read one segment ahead on. `make-parser` wraps its
reader itself; call this only to run a loop or segment parser directly.
sourceraw docstring

make-component-unparserclj

(make-component-unparser k meta sub-schema epos)
source

make-composite-parserclj

(make-composite-parser k meta sch from-pos)
source

make-composite-unparserclj

(make-composite-unparser k meta sch epos)
source

make-element-parserclj

(make-element-parser k meta sch from-pos)
source

make-element-unparserclj

(make-element-unparser k meta sub-schema epos)
source

make-group-parserclj

(make-group-parser k meta sch)
source

make-group-unparserclj

(make-group-unparser k meta sch)
source

make-interchange-parserclj

(make-interchange-parser sch)
source

make-interchange-unparserclj

(make-interchange-unparser sch)
source

make-loop-parserclj

(make-loop-parser k meta sch)
(make-loop-parser k meta sch follow)
source

make-loop-unparserclj

(make-loop-unparser k meta sch)
source

make-parserclj

(make-parser sch)
source

make-primitive-component-unparserclj

(make-primitive-component-unparser sch)
source

make-primitive-parserclj

(make-primitive-parser sch)
source

make-primitive-unparserclj

(make-primitive-unparser sch)
source

make-segment-parserclj

(make-segment-parser k meta sch)
(make-segment-parser k meta sch follow)
source

make-segment-unparserclj

(make-segment-unparser k meta sch)
source

make-transaction-parserclj

(make-transaction-parser sch)
source

make-transactions-parserclj

(make-transactions-parser k meta sch)
source

make-transactions-unparserclj

(make-transactions-unparser k meta sch)
source

make-unparserclj

(make-unparser sch)
source

next-map-schclj

(next-map-sch sch)
source

next-map-typeclj

(next-map-type sch)
source

on-transactionclj

(on-transaction ot)
source

parse-starterclj

(parse-starter ot)
source

SegmentLookaheadcljprotocol

segment-valuesclj

(segment-values r)

The segment the reader is on, read AHEAD without consuming it, as {[element component] text} -- first occurrence of each position. A simple element is component 1 of its position, which is also how the reader reports a composite that travelled with its first component and no separator. The reader goes on to replay the segment to whichever parser takes it.

The segment the reader is on, read AHEAD without consuming it, as
`{[element component] text}` -- first occurrence of each position. A simple
element is component 1 of its position, which is also how the reader
reports a composite that travelled with its first component and no
separator. The reader goes on to replay the segment to whichever parser
takes it.
source

skip-compositeclj

(skip-composite r)

Advances from a composite's START_COMPOSITE to just past its END_COMPOSITE.

Advances from a composite's START_COMPOSITE to just past its END_COMPOSITE.
sourceraw docstring

skip-elementsclj

(skip-elements element-pos from-pos)

Positions the reader at element element-pos, counting from from-pos, and returns the reader -- or nil when the segment ran out before that position.

An element is a POSITION, not an event. A simple element is one ELEMENT_DATA, but a composite occupies one position and spans START_COMPOSITE .. END_COMPOSITE, so passing over it means passing the whole span.

Counting events instead was the single defect behind every composite symptom this parser had. At a START_COMPOSITE the old gate matched nothing and returned nil, so the composite was neither entered nor skipped and the reader stayed parked on it -- every later parser for that segment then no-opped in turn, and consume-segment drained into a case with no START_COMPOSITE branch. Hence No matching clause: START_COMPOSITE for a composite the schema declared perfectly well, and silently empty segments (HI, say) where the composites were merely dropped.

Positions the reader at element `element-pos`, counting from `from-pos`, and
returns the reader -- or nil when the segment ran out before that position.

An element is a POSITION, not an event. A simple element is one
ELEMENT_DATA, but a composite occupies one position and spans
START_COMPOSITE .. END_COMPOSITE, so passing over it means passing the whole
span.

Counting events instead was the single defect behind every composite symptom
this parser had. At a START_COMPOSITE the old gate matched nothing and
returned nil, so the composite was neither entered nor skipped and the
reader stayed parked on it -- every later parser for that segment then
no-opped in turn, and `consume-segment` drained into a `case` with no
START_COMPOSITE branch. Hence `No matching clause: START_COMPOSITE` for a
composite the schema declared perfectly well, and silently empty segments
(HI, say) where the composites were merely dropped.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close