Hello, list. I want to use the f90 command for getting the fortran
code. For example:
(%i1) load("f90")$
(%i2)
f90(first_long_name_variable+second_long_name_variable+third_long_name_variable)$
third_long_name_variable+second_long_name_variable+first_long_nam&
e_variable
(%i3)
But such output of f90 command is not recognized by gfortran, let's
consider the simple program:
!#####test.f90#####
program test
implicit none
real(8)
a,first_long_name_variable,second_long_name_variable,third_long_name_variable
first_long_name_variable=1
second_long_name_variable=1
third_long_name_variable=1
a=third_long_name_variable+second_long_name_variable+first_long_nam&
e_variable
write(*,*) a
end program test
ya at debian:/mnt/maindisk/fortran/gem$ gfortran -o a.out test.f90
test.f90:8:
a=third_long_name_variable+second_long_name_variable+first_long_nam&
1
error: Unclassifiable statement at (1)
ya at debian:/mnt/maindisk/fortran/gem$
Putting sumbol "&" in the beginning of the next line that is to be
continued solves the problem, i.e. the program
!#####test.f90#####
program test
implicit none
real(8)
a,first_long_name_variable,second_long_name_variable,third_long_name_variable
first_long_name_variable=1
second_long_name_variable=1
third_long_name_variable=1
a=third_long_name_variable+second_long_name_variable+first_long_nam&
&e_variable
write(*,*) a
end program test
can be compilled by gfortran.
Is it possible to make maxima to put the ampersand symbol not only in
the end of the line that is to be continued , but in the beginning of
the next line too?
P.S. sorry for my rough english.