kittu
kittu

Reputation: 67

Parser for COBOL written in JAVA

I wanna check write script to check MI(Maintainability Index) value for COBOL code. For that i need a Parser written in JAVA for COBOL code. Please help me in this

Upvotes: 0

Views: 5090

Answers (3)

Franck
Franck

Reputation: 986

There is a project named NACA that can be a great source for your question :

http://code.google.com/p/naca/ :

NACA was about replacing an IBM mainframe under MVS/OS390 (zOS) with Intel servers on Linux. The project started in January 2003 and successfully ended on june 30, 2007. It was on purpose implemented in a 100% iso-functional way, i.e. without any functional / applicational improvement brought during the process of trans-coding itself and by the transcoding engine. 4 millions lines of COBOL were 100% automatically trans-coded toward their Java equivalent.

Upvotes: 0

James Anderson
James Anderson

Reputation: 27478

There is one out there already:

http://mapage.noos.fr/~bpinon/a_cobol_parser.htm

Not sure of the quality or which particular dialect of COBOL you need to parse! But its a starting point.

Be warned though the normal criteria for maintainability are pretty much inverted when it comes to COBOL (e.g. Lots of small independant subroutines = Bad !).

Upvotes: 1

khachik
khachik

Reputation: 28703

You might want to look at some "Java cobol parser" in a search engine ( koopa ). Also, consider "java lexer parser generator".

Upvotes: 2

Related Questions