We just released a new version of LFortran 0.11.0. You can install it using Conda:
conda create -n test1 lfortran=0.11.0 conda activate test1
Or you can compile from source. Our GSoC student @ThirumalaiShaktivel has done a tremendous job fixing every bug that we knew about in the parser and we tested it on quite a few codes. Now it’s a good time for the wider community to test it out. If you discover any bugs, please report them here or create an issue at: Issues · lfortran / lfortran · GitLab.
How to test:
lfortran fmt some_file.f90
If it prints the code back (in color), it works. If you get any kind of errors, it’s a bug in the compiler and we would appreciate it if you let us know about it. You can also replace the original file by
lfortran fmt -i some_file.f90 (be careful, only do this if the original file is checked into git). If you compile the reformatted code with another Fortran compiler, it should compile and run correctly.
We are aware of the following issues, that we will fix soon:
- comments are currently skipped (this includes pragmas like openmp)
- empty lines are skipped
- the location information can sometimes be incorect in AST (so when you get a syntax error, the line/column number might not be accurate)
If you discover anything else, please let us know.