mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Interaction in CAS through pipes


Chronological Thread 
  • From: Paulo Jorge de Oliveira Cantante de Matos <address@hidden>
  • To: Joris van der Hoeven <address@hidden>
  • Cc: TeXmacs-users ML <address@hidden>
  • Subject: Re: [TeXmacs] Interaction in CAS through pipes
  • Date: Wed, 26 May 2004 19:07:34 +0100

> On Wed, 26 May 2004, Paulo Jorge de Oliveira Cantante de Matos wrote:
> > In continuation to the "Interaction with CAS" and after reading some
> > TeXmacs docs I have some questions:
>
> Notice also that you have to decide whether you want to communicate
> over a pipe, or directly inside TeXmacs (which assumes that you
> use Guile Scheme and not PLT scheme).
>

I'm developing it in PLT Scheme, so I'll use pipes than, will that
decision make it impossible to pass texmacs trees?

> > Being my CAS writen in scheme (PLT Scheme to be precise), instead of
> > outputting LaTeX like mentioned in the docs I could output directly the
> > texmacs trees (I couldn't find a specification of this trees, since the
> > docs only mentioned the transformers). Outputting directly texmacs trees
> > would be easier to texmacs to parse and since they are in scheme, maybe
> > they'd be easier for me to output.
>
> That is certainly what I had in mind.
>

Nice, What I couldn't find was where is the specs for texmacs trees.
What's their syntax? I think I'll check the plugins code directly to see
if I find anything about that.

> > Same thing for inputting data into my CAS. Texmacs could send texmacs
> > trees directly to me so that I could parse them into my CAS objects.
>
> We already do provide some "flattening facilities" (see the other
> plug-ins and Help -> Interfacing -> Mathematical and customized output).
> A student is also working on an integrated parser/pretty-printing tool
> written in Scheme. If you have some free time, then you might be
> interested in helping him.
>

I don't have much time on my hands now since I'm about to deliver a MSc
report but I'll check it out afterwards. I can maybe give him a hand. Do
you have his contact?

> > This way I wouldn't need to have the DATA_BEGIN, DATA_END or DATA_ESCAPE
> > characters, we could exchange scheme code directly through the pipe.
> >
> > I can't see this options mentioned in the docs. Please redirect me if I
> > failed to see them.
>
> Carefully read the whole section Help -> Interfacing. Two third of it
> is bound to be interesting for you. You may send TeXmacs trees using
> the "scheme" format. I also recommend you to take a look what other
> plug-ins do.

I really read the whole section, however, not carefully. From what I
recall, there's not much about the scheme format but I'll check it out
again.

Thanks,

--

Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
- > http://mega.ist.utl.pt/~pocm
---
-> God had a deadline...
So, he wrote it all in Lisp!




Archive powered by MHonArc 2.6.19.

Top of page