On Mon, 2012-01-23 at 16:17 -0500, Cedric Greevey wrote:
> On Mon, Jan 23, 2012 at 11:19 AM, daly <d...@axiom-developer.org> wrote:
> > It accepts either noweb syntax for chunks, as in:
> >    <<chunkname>>=
> >      (this is lisp code)
> >    @
> 
> A rather unfortunate choice of delimiter if you wanted to use this
> with Clojure code, since Clojure code frequently has internal @-signs
> for other purposes. I don't suppose that noweb syntax was developed
> with Clojure in mind, though, or vice-versa.
> 

The noweb syntax was chosen by Norman Ramsey, the author.
Since the tangle program processes the literate document,
the REPL would never see the chunk syntax. The unfortunate
side effect is that latex DOES see the chunk syntax so you
have to use a "weave" program to get straight latex.

Instead I implemented a new latex environment called "chunk"
so I could use \begin{chunk} as the delimiter. This means
that the weave step is no longer required and my document
is straight latex.

In the HTML version I used <pre id="chunkname"> so that
the weave step is not required either.

For Eclipse I suppose we could invent a chunk syntax
and create a plugin. If people are interested perhaps we
could create a Literate Clojure plugin for Eclipse. See
http://www.eclipse.org/articles/Article-Your%20First%
20Plug-in/YourFirstPlugin.html
That would make Clojure and Literate much more useful
to Eclipse users.

Tim Daly



-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to