Konstantin8105 / c4go

Transpiling C code to Go code
MIT License
363 stars 37 forks source link

COBOL or PL1 transpile #467

Closed decompsed-learning closed 4 years ago

decompsed-learning commented 5 years ago

Have you looked doing a transpile from COBOL, or PL1 to Golang?

Konstantin8105 commented 5 years ago

Hello, You idea is good. As I see - the first problem is creating AST tree. For C4GO, we use 'clang'. For example- I do not found AST creater for fortran. Do you know AST creaters for that languages?

decompsed-learning commented 5 years ago

I think this should work https://github.com/uwol/proleap-cobol-parser

Konstantin8105 commented 5 years ago

Syntax of AST is too different.. So, the best way is create transpiler for cobol outside of that project. May be you can try - cobol to C , then C to Go, but I do not know transpiler from cobol to C. For myself is not clear you point of view.