Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generator - Recognise group OCCURS #49

Open
pgmitche opened this issue Jul 23, 2021 · 0 comments
Open

Code generator - Recognise group OCCURS #49

pgmitche opened this issue Jul 23, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@pgmitche
Copy link
Member

pgmitche commented Jul 23, 2021

Example:

000990         10  GROUP.                           00000240
000990            15  PROP-A       PIC 9(9).9(2).         00000241
000990            15  PROP-B       PIC X.                      00000254
000990                OCCURS 12.                                  00000242

Where the occurrence is of GROUP-A, not PROP-B

and should produce

type stuff struct {
     Groups []Group `pic:"x,y,z"`
}

type Group struct {
     PropA float64 `pic:"x,y,z"`
     PropB string `pic:"x,y,z"`
}
@pgmitche pgmitche added enhancement New feature or request help wanted Extra attention is needed labels Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant