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

Copybook: Support parsing cobol programs as copybooks #17

Open
bbemis017 opened this issue Apr 15, 2023 · 0 comments
Open

Copybook: Support parsing cobol programs as copybooks #17

bbemis017 opened this issue Apr 15, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bbemis017
Copy link
Collaborator

bbemis017 commented Apr 15, 2023

Feature Description

Since the copybook is just a chunk of the cobol program it would be ideal to support parsing the copybook directly from the cobol program. This would mean ignoring non-relevant leading/trailing sections to the copybook in the grammar.

Use Cases

This could be useful if a copybook has not been exported from a cobol program yet. So it could save someone some time in theory, although I'm not sure if there are cases when someone would need this in practice.

Who can work this issue?

Would be open to someone picking this up

Does this feature need more scoping or discussion?

No

@bbemis017 bbemis017 added the enhancement New feature or request label Apr 15, 2023
bbemis017 added a commit that referenced this issue Apr 16, 2023
closes #6

### Changes
- Adds an initial copybook definition interface
- Adds Initial copybook parsing logic
- Adds Initial copybook grammar 
- Supports parsing simple copybooks (still missing a lot of features)

### Context For Reviewers
This is the initial copybook parser and it is able to parse simple
copybooks with fields and nested groups of fields. It is
very limited at the moment though so there are some more features to add
later:

- #14 
- #16 
- #15 
- #17
- #19 
- #20 

### Testing
Build should pass

### Code Change CheckList

- [X] Code runs without errors.
- [X] Added/Updated tests for feature.
- [X] fixed or suppressed any linting warnings.
- [X] Added relevant documentation to methods, classes, markdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant