superbol-studio-oss icon indicating copy to clipboard operation
superbol-studio-oss copied to clipboard

command 'superbol-free reformat to-free FILES.cob'

Open lefessan opened this issue 1 year ago • 3 comments

Translate files from fixed to free format

In case it can be useful to somebody else...

lefessan avatar Mar 07 '24 15:03 lefessan

If you were using cobol_preproc you'd get proper right-padding of alphanumerics that are broken across several lines, along with support for change-of-format compiler directives (that can often be seen at the top of COBOL source files).

Anyways, given the stated restriction on fixed format, I'd suggest to rename the command into "reformat fixed-to-free".

nberth avatar Mar 07 '24 15:03 nberth

@lefessan If you add that - a reverse command would be much more useful, as many peprocessors only handle fixed-form reference-format.

@nberth: I think you should be able to package a native binary of cobol_preproc with the LSP which allows an extension command (or multiple ones) to trigger that.

GitMensch avatar Mar 07 '24 15:03 GitMensch

friendly ping @nberth @lefessan

GitMensch avatar Jul 04 '24 14:07 GitMensch