Ralf Hemmecke wrote:
>
> Another question for me is the overall picture of i-output.boot.
> If I understand that correctly, then we have the following.
>
> OutputForm is (more or less) a general expression tree that already
> encodes some visual information like whether something is on top of each
> other (vconcat) or put into parentheses, braces, brackets.
> Also OutputForm already seems to know about the horizontal and vertical
> size of the output. All that does suggest to me that OutputForm was
> originally thought to be tailored for a 2d output.
OutputForm wraps Boot functions for computing width and height.
They probably should be removed, as they will give wrong
results for other formats.
> So i-output.boot is (in fact) the 2d ascii output formatter. And
> (probably only afterwards) became a dispatcher for the translation of
> the internal representation (SExpression) to other output formats like
> html, mathml, fortran, script, etc.
IIUC i-output.boot is descendant of charybdis formatter from 1965.
Clearly, other formats came later.
> So in the end, the corresponding i-output.boot spad code should probably
> be split into a algebra2d.spad and outputdispatch.spad.
>
> I haven't yet looked too deeply into i-output.spad, but did I get the
> global picture correct?
This agrees with my understanding.
> Furthermore, do you know of any other client that calls functions from
> i-output.boot (except the mathprint, of course)? I'm not asking that
> you should look for this now, just whether you happen to know already.
> Otherwise, I'll search myself.
'outputTran' is used by all formats. In the past precedence tables
for operators where shared with Spad compiler.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.