|
From: Eduardo O. <edu...@gm...> - 2022-01-13 06:08:45
|
Fantastic! Thanks!!! =)
By the way, where is the code that tells the Lisp reader how to handle
expressions starting with "#$"? This page
(info "(maxima)Lisp and Maxima")
mentions "The '#$' Lisp macro" but it doesn't give a function name or
the name of a Lisp file, and I grepped a bit and couldn't find it...
Cheers =),
E.
On Thu, 13 Jan 2022 at 02:07, Robert Dodier <rob...@gm...> wrote:
> Eduardo,
>
> The #$ macro calls both MEVAL (evaluation) and SIMPLIFYA
> (simplification). To just parse a string, try parse_string, e.g.:
>
> (%i5) load(stringproc);
> (%o5) C:/maxima-5.45.1/share/maxima/5.45.1/share/stringproc/stringproc.mac
> (%i6) :lisp ($parse_string "'a")
> ((MQUOTE) $A)
>
> parse_string does indeed just construct a string input stream and then
> calls MREAD.
>
> Hope this helps,
>
> Robert Dodier
>
|