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

feat: XML host file reference variable array support #2406

Conversation

mm-broadcom
Copy link
Contributor

Adds the grammar to support XML host and file reference variable arrays per IBM's documentation: https://www.ibm.com/docs/en/db2-for-zos/13?topic=cobol-host-variable-arrays-in#db2z_hostvariablearraycobol__title__20

How Has This Been Tested?

Verified in VS Code with a sample program/setup and also made some unit tests as well.

Checklist:

  • Each of my commits contains one meaningful change
  • I have performed rebase of my branch on top of the development
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

Add grammar for Binary Host Variable Arrays. (New branch due to the old one getting out of date and merges/updates caused it to break.)
Fixed error and added unit tests.
Add grammar for Binary Host Variable Arrays. (New branch due to the old one getting out of date and merges/updates caused it to break.)
Fixed error and added unit tests.
Add OCCURS to SQL.tmlLanguage.json to provide highlighting.
Add the grammar needed to make the current XML variable rule into one that supports arrays as well.
…lParser.g4

Co-authored-by: slavek-kucera <53339291+slavek-kucera@users.noreply.github.com>
@ap891843 ap891843 merged commit 0d28f1b into eclipse-che4z:development Jul 25, 2024
17 checks passed
chacebot pushed a commit to chacebot/che-che4z-lsp-for-cobol that referenced this pull request Jul 26, 2024
)

* Add grammar for Binary Host Variable Arrays

Add grammar for Binary Host Variable Arrays. (New branch due to the old one getting out of date and merges/updates caused it to break.)

* Added missing override due to merge

* Fixed error and added unit tests

Fixed error and added unit tests.

* Fixed compile issue from rebase.

* Add grammar for Binary Host Variable Arrays

Add grammar for Binary Host Variable Arrays. (New branch due to the old one getting out of date and merges/updates caused it to break.)

* Fixed error and added unit tests

Fixed error and added unit tests.

* Add OCCURS to SQL.tmlLanguage.json

Add OCCURS to SQL.tmlLanguage.json to provide highlighting.

* Add array functionality to XML variable rule

Add the grammar needed to make the current XML variable rule into one that supports arrays as well.

* Added unit test

* Add range unit tests

* Add Array implicit variable declaration handling

Add Array implicit variable declaration handling

* Add test for generated variables.

* Fixed tests due to generated variables.

Fixed tests due to generated variables.

* Update server/engine/src/main/antlr4/org/eclipse/lsp/db2/parser/Db2SqlParser.g4

Co-authored-by: slavek-kucera <53339291+slavek-kucera@users.noreply.github.com>

* Added detail to a test

---------

Co-authored-by: slavek-kucera <53339291+slavek-kucera@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants