Experiences with LFortran
The code for the demo uses arrays. With LFortran on WSL 2, I can run a small program interactively such as
integer :: i
i = 3
print*,i,i**2
but I can't use arrays. When run interactively the program
integer :: ivec(1)
ivec(1) = 3
gives a segmentation fault.
However, if I store
program main
integer :: ivec(1)
ivec(1) = 3
print*,ivec
end program main
in vec.f90
I can compile it with lfortran vec.f90
and run it.
LFortran does not recognize the one-line program end
.
lfortran end.f90
gives
input:1:1 semantic error: Variable 'end' not declared