uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
134 stars 73 forks source link

Adding test for copying files with 'of' statement #56

Closed Slesa closed 6 years ago

Slesa commented 6 years ago

Unfortunately had no example for copying via 'of' and replace sth at the same time.

uwol commented 6 years ago

First of all thank you for issuing a PR!

The PR makes the test suite to fail and thus cannot be merged into master. – if the PR contains a bug, can you please commit a fix into this PR? – instead, if the parser has a bug, can you please open an issue?

Thanks!

GitMensch commented 3 years ago

Note: different compilers implement the OF (always as an alternative: IN) differently - because the standard does not define what the "library" that is specifies actually means.

Many pc-based compilers use the OF/ IN as a folder, Micro Focus uses it as an "optional folder" (if it is there, then it is read from there, otherwise it is looked up without the folder name). The sample here looks like a copy-library where multiple copybooks are included, separated by ?SECTION copy-name^M. Where does it comes from? And how should the library name =W999IO should match to CopyOf1?