This preprocessor converts various COBOL formats to a standard "free" format suitable for the COBOL parser.
The preprocessor is distributed under the GNU Lesser General Public License.
You can download the Java source code here. The JavaDoc is there.
Usage : java testparser.Preprocessor [<options>]<in_path> [<out_path>]
where :
<options>
: preprocessor options :<in_path>
: COBOL 85 source path.
<out_path>
: output path. If omitted, stdout is used.
The parser assumes that copy-books are stored in the same directory than the source you are preprocessing. Copy-book files can either have no extension or have the ".cob" extension (same for the main source).
Restrictions :
This is the only COBOL punched card that remains in my collection from my early programs (but I still have others in FORTRAN or JCL):