axiom-developer
[Top][All Lists]
Advanced

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

[Axiom-developer] Re: gclweb.lisp


From: C Y
Subject: [Axiom-developer] Re: gclweb.lisp
Date: Tue, 1 May 2007 21:00:43 -0700 (PDT)

--- address@hidden wrote:

> Cliff,
> 
> I started simulating the ANSI machinery in order to get a 
> working version of your code (e.g. coding read-sequence) in
> GCL. Eventually I gave up and created a simple version to 
> substitute until we have an Axiom under ANSI lisp.

OK.  Any chance Camm could support on this by implementing
read-sequence  in GCL?  Perhaps it isn't so critical if we're close to
running on SBCL in any case.

> I also
> wanted to experiment with latex chunk syntax. We can work
> that into your code eventually.

If everything works as it should, changing cl-web to LaTeX chunk style
should be as simple as changing this:

<<tangle-delimiter-variables>>=
(eval-when (:compile-toplevel :load-toplevel :execute)
  (progn
    (defvar chunk-start-delimiter "<<")
    (defvar chunk-name-end-delimiter ">>=")
    (defvar chunk-ref-start-delimiter "<<")
    (defvar chunk-ref-end-delimiter ">>")
    (defvar chunk-end-delimiter "@")))

@

to this:

<<tangle-delimiter-variables>>=
(eval-when (:compile-toplevel :load-toplevel :execute)
  (progn
    (defvar chunk-start-delimiter "\begin{chunk}{")
    (defvar chunk-name-end-delimiter "}")
    (defvar chunk-ref-start-delimiter "\chunk{")
    (defvar chunk-ref-end-delimiter "}")
    (defvar chunk-end-delimiter "\end{chunk}")))

@

and recompiling the cl-web file.

> Attached is a block of code to implement the tangle function in GCL.
> It can be adjusted to either accept latex or noweb syntax by 
> changing one function name (ischunk-latex to ischunk-noweb).

Did you want to incorporate that into the cl-web file?  How serious is
the breakage?  If we can shoe-horn together some kind of read function
that outputs what cl-web needs (even if it's slower) would the rest of
it work?

> I'm looking into the use of pure latex pamphlet files [snip] in
> place of the noweb syntax. The chunk environment latex macro is
> being worked on now.

Nice!

> That will allow us to completely skip the noweave
> function and just use straight latex. I'll send them to you once they
> are working.

That would be great.  In that case, should we bother with implementing
the conversion to LaTeX or just wait for the new style to roll out?

> In a short while, due to the work by you, Waldek, and Kai we
> can make Axiom understand literate files everywhere and remove
> the need for noweb completely.

I'm interested in some of the possibilities having a (fast) tangle in
lisp opens up on the editor side, perhaps using Climacs or Able.  Emacs
seems to be showing its age when it comes to this type of editing, so
perhaps the better direction would be to focus on creating the exact
tool we need.  For the future, but interesting.

Cheers,
CY

P.S.  I sent cl-web-v0.5 to the list, but it hit the filesize limit -
anybody know who the list admin is?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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