Version 33, last updated by sebug at Sep 21 16:39 2009 UTC
Scalit - bringing Literate Programming to Scala
The scalit tool suite allows you to write literate programs in the Scala programming language.
Latest Version
You can download the latest version directly from here:
Both versions require at least Scala version 2.7.1 final (which you can download here). Furthermore, you will need perltex.
Patching of the Scala compiler was tested with version 2.7.6 final.
If you like following the progress of Scalit more closely, you can also clone the Mercurial project as follows:
hg clone http://hg.assembla.com/scalit
Just don't forget to send me your patches in this case.
How to use Scalit
Useful resources
- Look at a sample output of weave . To compile this yourself, download examplegraph.pdf and generate_graph.nw , weave with "sweave generate_graph.nw -idx t -o generate_graph.tex" and generate the pdf with "perltex --latex=pdflatex generate_graph.tex"
- Here is a second example: Balls into bins
- The noweb distribution, main source of inspiration and has the same syntax
- Noweb mode for Emacs, by Thorsten Ohl, part of said distribution. Together with the scala mode from the Scala distribution (to be found under $SCALA_HOME/misc/scala-tool-support/emacs), you should be able to edit with the same comfort as normal source files.
License, author and bug reports
The scalit tool suite is distributed under the BSD-like Scala license. It was the semester project of Sebastian Gfeller, who still occasionally updates it. In the very likely case that you will find a bug in scalit, you should contact him.