axiom-mail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-mail] Re: Outputting S-expressions


From: Ludovic Courtès
Subject: [Axiom-mail] Re: Outputting S-expressions
Date: Tue, 07 Nov 2006 11:13:33 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Martin Rubey <address@hidden> writes:

>> Actually, I want a "parsable" S-exp, like `(** (+ 1 x) 5)' in this case.
>
> I think you might want to use INFORM (= InputForm)?

Yes, thanks for the hint.  I was able to do the following:

  -> f:File InputForm:=open("out.sexp", "output")
  -> write!(f, p::INFORM)

One minor thing: in the output file, variable names are enclosed in `|'
(e.g., `(+ 1 |x|)').  Is there a way to turn it off?

Thanks,
Ludovic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]