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

TRIM arguments per COBOL2023 are missing #271

Open
GitMensch opened this issue Apr 19, 2024 · 0 comments
Open

TRIM arguments per COBOL2023 are missing #271

GitMensch opened this issue Apr 19, 2024 · 0 comments

Comments

@GitMensch
Copy link
Contributor

if you adjust something there, then make it compatible to COBOL2023.

grafik

(that is not 100% correct, the "..." applies to both argument-2 and ANYCASE together.

  • argument-2 may specify the character to trim (and ANYCASE if that character is case-insensitive)
  • that group can be specified multiple times
  • as explanation, not relevant for the LSP [if it isn't specified it implies a single group consisting of SPACE]

NOTE The processing of TRIM (arg-1 arg-2-1 arg-2-2) is the same as TRIM (TRIM (arg-1 arg-2-1) arg-2-2). If
the TRIM (“aabbcc” “c” “b”) is specified, the result would be “aa”, not “aab” or “aabb”.

Originally posted by @GitMensch in #209 (comment)

While #262 implemented the COBOL2014 addition, the addition from COBOL2023 is missing.

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

No branches or pull requests

1 participant