Skip to content

A new version of opensourcecobol. Translate COBOL to Java.

License

Notifications You must be signed in to change notification settings

moriyama/opensourcecobol4j

 
 

Repository files navigation

opensource COBOL 4J

日本語版README

"opensource COBOL 4J" is a COBOL compiler that translates COBOL parograms to Java programs. This compiler is deeply inspired by "opensource COBOL" which translates COBOL programs to C programs. (In fact, this repository contains a lot of source files of "opensource COBOL")

LICENSE

libcobj, the runtime libraries, are distributed under the the GNU Lesser General Public License Version 3. Other software and libraries are distributed under the GNU GENERAL PUBLIC LICENSE Version 3.

Requirements and Installation

See Installation page.

Usage

Compile.

cobj [COBOL source file]

("cobj" command produces [PROGRAM-ID].java and [PROGRAM-ID].class in the current directory.)

Run.

java [PROGRAM-ID]

The progress of the development

The functions in the following "implemented" list are tested using NIST COBOL85 test suite and 99% of the test cases are passed.

Implemented.

  • Data calculation (MOVE, COMPUTE, ... )
  • Control statements (IF, PERFORM, GO TO, ...)
  • Some I/O functions (DISPLAY, ACCEPT, ...)
  • Call statements
  • Sequential files
  • Indexed files
  • Sort statements
  • Embedded functions (ACOS, LENGTH, MAX, ...)

Not Implemented.

  • Relative files

Known bugs

  • Cannot call inline programs.

About

A new version of opensourcecobol. Translate COBOL to Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • COBOL 87.1%
  • C 5.3%
  • Java 3.1%
  • Shell 1.5%
  • M4 1.2%
  • Makefile 1.0%
  • Other 0.8%