Open Beliavsky opened 2 years ago
Right now it is optimized for SLALib files, so the following changes would need to be implemented to the parser:
And following transforms:
square = i**2
=> return i**2
print* ...
=> print(...)
program ...
=> def ... ():
... function ...
=> def ... :
Otherwise convert.py
should be able to convert this code though I would need to double check to ensure square
doesn't get mischaracterized as an array
Additionally, it would need to allow for arbitrary file inputs as opposed to just looking for SLALib files
Thanks for your project. How can I use convert.py to convert other Fortran code I have, for example a file main.f containing