Questions about maxima's source code




Raymond Toy wrote:

>>>>>>"Michel" == Michel Van den Bergh <michel.vandenbergh at uhasselt.be> writes:
>>>>>>            
>>>>>>
>
>    Michel> Hi,
>    Michel> I am trying to find my way in maxima's source code.
>    Michel> To speed things up I have some questions.
>
>    Michel> (1) Where is maxima's main loop located?
>
>cl-user::run, in src/init-cl.lisp, which basically runs
>macsyma-top-level, in src/macsys.lisp.
>
>    Michel> (2) I assume that things type by the user are first translated into 
>    Michel> maxima's internal format and then evaluated.
>    Michel> Is the evaluation done by meval?
>
>After some poking around, it's the function toplevel-macsyma-eval in
>macsys.lisp, which basically calls meval*.
>
There is another important activity which is simplification, done by 
simplifya 

>
>    Michel> (3) Which is the routine which formats maxima's internal format for display?
>
>This is done by the function displa in src/displa.lisp.
>

You might want to look at nformat, which is an intermediate level 
between the internal form and the program that spews bits on a screen.

>
>Ray
>_______________________________________________
>Maxima mailing list
>Maxima at math.utexas.edu
>http://www.math.utexas.edu/mailman/listinfo/maxima
>  
>