Subject: evaluate Maxima string from lisp command line...
From: CY
Date: Fri, 5 Mar 2004 01:03:30 -0500
On Thu, 04 Mar 2004 20:51:32 -0800
Richard Fateman <fateman@cs.berkeley.edu> wrote:
> The source file would be nparse, but I suspect that
> it doesn't have exactly that functionality to read from a string.
> It reads character by character from a stream, most usually.
So, how does what is entered on the command line get translated into Maxima internals? nparse has a lot of mread, scan-string, and parse type stuff, but it isn't immeditately clear what does what.
> If it were in lisp you could do (read-from-string " ....")
>
> (setf expr (macsyma-parse-from-string " .....")) if that existed.
>
> Then to evaluate it, do
>
> (meval expr)
Is there any documentation somewhere on how Maxima actually does this? It would seem to be an appropriate topic for some kind of programmer's manual.
CY