Mockmma



Hunter Monroe wrote:
> Richard,
>
> Could you give me any guidance on how to go about making the Mockmma parser
> case sensitive? I am aware that ANSI standard Common Lisp is not case
> sensitive, and in particular GCL does not implement "(setf (readtable-case
> *readtable*) :preserve)". How does Maxima achieve case sensitivity in
> reading user input and would it make sense for Mockmma to employ the same
> approach? 
>   
Look at intern-invert-case and print-invert-case.  It's been a while,
but I think Maxima reads in strings and calls intern-invert-case to do
basically what a readable case of :invert would do:  all lower becomes
all upper, all upper becomes all lower and mixed stays.  This is interned.

For printing, print-invert-case basically sets the readtable to :invert
and prints out the symbol.

This makes maxima case-sensitive, but still makes it easy to interact
with Lisp without having to quote all symbols.

Ray