Giter VIP home page Giter VIP logo

Comments (2)

kputnam avatar kputnam commented on July 26, 2024

I haven't looked at the code closely yet, but I am guessing you shouldn't pass a repeat count to component_use. You might try removing the second argument, but maybe your problem is caused by something else. Searching through the code shows this error (assuming it's an error) was also made in the 4010 and 2001 element definitions, but it's only manifesting now.

As an aside: I think of composite elements sort of like structs in C, and each field is a component. However, unlike struct in C, the fields must be simple types -- no repeating things, no nested things, etc. The simple types in X12 are ID, AN, R, Nn, etc. Repeated elements are like ordinary list types, whose elements can be either simple elements or composite elements. So you could have a repeated ID element, a repeated composite element, etc, but the repetition is not nested because the fields in a composite element cannot be repeated.

from stupidedi.

irobayna avatar irobayna commented on July 26, 2024

I think this is OK now ( I am still fighting the non-deterministic problem)

when I run edi-pp -N I can see the different trees including the composite element

from stupidedi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.