#813 fortran function prints user-defined operators as such

open
nobody
Lisp Core (472)
5
2012-11-18
2005-11-16
Robert Dodier
No

fortran function prints user-defined operators as such,
but probably should print them using ordinary function
notation (i.e., function name then arguments in
parentheses) since Fortran doesn't admit new operators.

prefix ("foo");
infix ("bar");
postfix ("baz");
nofix ("quux");
matchfix ("blurfle", "blart");
nary ("mumble");

fortran (foo a + b bar c + d baz + quux + blurfle e, f,
g blart + h mumble j mumble k);

=>

h mumble j mumble k+blurflee,f,gblart+d baz+b bar
c+foo a+quux

should probably be

mumble (h, j, k) + blurfle (e, f, g) + baz (d) +
bar (b, c) + foo (a) + quux ()

I don't know how hard we should try to fix this. Maybe
gentran (in share/) already handles this (if we fixed
gentran so that it works).

Discussion