Software Architect, Managing Director
2 min read | 2018-01-02

ProLeap transformation pipeline

The ProLeap platform implements a code transformation pipeline, which in its frontend extracts program structure from COBOL and Visual Basic 6.0 source code and in its backend transforms this program structure to Java source code, reports and code metrics.

The ProLeap frontend is constituted by parsers for COBOL and Visual Basic 6.0, which we have implemented based on the ANTLR 4 parser generator framework. In the year 2015, we published the parsers under an open source license.

As a result, the ProLeap COBOL parser has been applied by legacy modernization companies for parsing COBOL source code, and a derivative of the ProLeap VB 6.0 parser is applied at core of the Rubberduck VBA project, which enables unit testing, refactoring and code inspection in the Visual Basic Editor (VBE). This open source momentum strengthens the development of our parsers, and thus supports the quality of the program structure generated by the ProLeap frontend.

The ProLeap backend is constituted by a rule-based transformation engine, which associates COBOL and Visual Basic 6.0 language patterns with Java code fragments. When applied on a program structure generated by the ProLeap frontend, Java source code is generated including accompanying resources such as MAVEN project files.

Selective parts of the generated source code depend on runtime libraries, which are provided as open source MAVEN dependencies. Thus the generated artifact does not depend on proprietary software and is not affected by a vendor lock-in. As the transformation engine is rule-based, the transformation process and thus the generated Java source code can be customized arbitrarily.

COBOL pipeline

COBOL transformation pipeline

Visual Basic 6.0 pipeline

VB 6.0 transformation pipeline