Ralf Hemmecke <[email protected]> writes:

> Hi Martin,
>
> good to hear from you.
>
> What lately came to my mind was efricas. You must have been
> communicating with fricas in some way from Emacs. What is the general
> idea and how is the connection actually done (rough sketch is
> enough)?
>
> I know you are not doing much computationally with the data you send
> to and get from fricas, but how exactly is the connection done?

I believe that this is unrelated, since I simply use the interpreter.
The only "clever" part is that Waldek implemented an "iohook" feature.
Set iohook to a function

)lisp (setf |$ioHook| (lambda (x &optional args) 
(do-something-with-x-and-args)))

(in efricas: fricas-marker-format-function)

and at certain points this function will be called, with x and args
containing information about what fricas is going to output next.  In
efricas, fricas-marker-format-function prints special escape strings
depending on x and args (eg. \e|startReadLine|\n) which are then caught
by a filter (namely fricas-filter)...

At no point efricas has any knowledge about what is being computed.
I.e., no parsing or some such.

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to