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

COBOL - Improve conditional compilation support (conditional / dynamic syntax check) #83

Closed
FALLAI-Denis opened this issue Sep 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@FALLAI-Denis
Copy link

Description of the enhancement requested

The latest versions of the IBM Enterprise Cobol compiler provide conditional compilation.

Conditional compilation makes it possible to take into account, or not to take into account, certain lines of source code in the construction (compilation) of the final program, by means of contextual variables which can be set (>>DEFINE) and tested (>>IF, >>EVALUATE ...).

This can allow to have syntactic constructions which can appear "invalid" if one does not take into account the conditional compilation.

We would like to reduce the number of COPYBOOK in Cobol and grouping together in the same COPYBOOK source several descriptions, both DATA and PROCEDURE, which would then be activated according to conditional compilation variables.
This would also allow us to ensure overall consistency by managing an entire context in a single COPYBOOK rather than managing several COPYBOOKs (one for the DATA, one for the PROCEDURE ...).

The Language Server Protocol processing implemented for COBOL does not seem to fully take into account conditional compilation and errors can be returned at the level of the VS Code editor.

See example below : the same COPYBOOK contains DATA and PROCEDURE, but each part is conditioned by conditional compilation variables.

ZOE-ConditionalCompilation-01

@phaumer phaumer added the enhancement New feature or request label Sep 18, 2020
@FALLAI-Denis FALLAI-Denis changed the title Improve conditional compilation support Improve conditional compilation support (conditional / dynamic syntax check) Nov 2, 2020
@FALLAI-Denis FALLAI-Denis changed the title Improve conditional compilation support (conditional / dynamic syntax check) COBOL - Improve conditional compilation support (conditional / dynamic syntax check) Nov 2, 2020
@FALLAI-Denis
Copy link
Author

Hi,

I think all issues has been fixed.

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

2 participants