f90 language translation example



I'd like to be able to write a file from maxima that I can paste directly
into a fortran 90 subroutine. The 'f90' module seems to be suited for this
but I don't know how to gain access to the string that f90(expr); prints to
the screen (f90 always returns 'done' by design). I need access to the
string so that I can manipulate it and concatenate another string to the
expression before writing to the file.

Is there a way to use stringout or a similar function to do this? I can't
seem to find a simple answer but this seems like it would be a common task
so I thought I'd ask. I've started to modify the source code in 'f90.lisp'
so that it returns an array of strings (one entry for each line) but I
haven't gotten it to work yet. Simply cutting from the maxima prompt and
pasting into an editor wouldn't be convenient because some of the
expressions are very long (> 100 lines with the f90 line breaks) so I'd like
to automate output to a file.

Thanks,

-- 
Todd