konstantin8105 / f4go Goto Github PK
View Code? Open in Web Editor NEWTranspiling fortran code to golang code
License: MIT License
Transpiling fortran code to golang code
License: MIT License
Добавить возможность
Количество Фортран комманд
Пример
Write 100
Read 12
For 5
Это поможет определить популярные и не реализованные
I intend to transpile this Finite Element Analysis program from FORTRAN to Go:
https://github.com/dr-bill-c/MYSTRAN
Due to the complexity of MYSTRAN code structure, I have a difficult time to do so. I wonder if there is any example of transpiling a large project from FORTRAN to Go. So that I can refer to the example to get started. Thanks :)
I suggest adding the topic transpiler
in the About section, since it has many more hits than transpile
.
Hi,
I just learned that FORTRAN is faster than C code, but I am not sure what is the motivation or goal of this project. Would be nice if the readme file could be updated for clueless people like me!
Thanks!
For fortran IMPLICIT
:
I tried to transpile a CERN-based FORTRAN77 code used to simulate high energy physics processes:
but the transpilation processes failed.
here are a couple of the error messages:
$> curl -O -L http://home.thep.lu.se/~torbjorn/pythia6/pythia6428.f
$> f4go ./pythia6428.f
[...]
pythia6428.f : Parsing error : Cannot identify token in left part separation :, in MIN ( 1e0 , MAX ( PARJ ( 129 ) , ( 2e0 * PARU ( 112 ) / ECM ) ** 2 ) )
[...]
pythia6428.f : Parsing error : Recover parseStmt pos{{54565 7}}: Not acceptable type : X ( 1 )
[...]
some of these errors may come from the use of IMPLICIT
, though.
hi,
I was trying out transpiling one last remnant of a FORTRAN dependency from CERN: CERNLIB, and more precisely its ZEBRA library.:
$> curl -O -L https://raw.githubusercontent.com/root-project/root/master/misc/minicern/src/zebra.f
$> f4go -p minicern ./zebra.f
[...]
Scan: end of postprocessor
./zebra.f : Parsing error : EQUIVALENCE ( CQLETT ( 1 ) , CQALLC ( 1 : 1 ) )
./zebra.f : Parsing error : EQUIVALENCE ( CQNUM ( 1 ) , CQALLC ( 27 : 27 ) )
[...]
./zebra.f : Parsing error : EQUIVALENCE ( IQTABV ( 1 ) , LQPSTO )
./zebra.f : Parsing error : EQUIVALENCE ( LQRS , LQSYSS ( 7 ) )
For fortran INTRINSIC
:
Main 6S fortran file returns error. Also would be nice if there was an -all flag to transliterate all .f files in current directory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.