Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/web/noweb/examples

All these examples have been set up to work with latex, although I
often prefer plain TeX because latex's page breaking is so bad and so
hard to control.  breakmodel.nw is the only one that requires
cross-referencing (noweave -x). I have included the nonstandard
`multicol' style file, although it is readily available as part of the
Mainz distribution.

Except for breakmodel.nw, each example file is a fragment of a larger
program.  noweb itself is not a good example of literate programming.
It is harder than most people realize to write a truly literate
program, and noweb wasn't worth the effort.

If you have installed noweb with LIBSRC=awk instead of LIBSRC=icon,
you need to use Makefile.awk instead of Makefile.

The files are:

  Makefile		Shows some sample default rules for use
			in a Makefile.  Try `make tree.tex tree.dvi'.
  Makefile.awk		Like Makefile but doesn't require Icon.
                        None of the HTML examples will be readable
			without Icon.
  breakmodel.nw		A formal model of breakpoints using the
			Promela modeling language.
  dag.nw		Fragment of an Icon program that compiles
			patterns into decision-tree pattern-matching
			code.  tree.nw builds the decision trees;
			dag.nw turns them into dags.
  graphs.nw		Several graphs written in jgraph (write
			plank@cs.utk.edu for information about jgraph).
  mipscoder.nw		Part of the original MIPS code generator from
			Standard ML of New Jersey.  Writting in Standard ML.
  primes.nw		noweb version of DEK's original prime-number program.
  scanner.nw		Part of a student compiler project.  Includes
			C code and lex and yacc specifications, all in
			a single file. 
  sharpline		A noweb filter that makes noweb `see' #line directives
                        in a noweb file.
  test.nw		A simple test file.
  tree.nw		Fragment of an Icon program that compiles
			patterns into decision-tree pattern-matching
			code.  tree.nw builds the decision trees;
			dag.nw turns them into dags.
  wc.nw			A re-implementation in noweb of the CWEB
			example from DEK's book.  This example is
			intended to be as exact a copy as possible; no
			attempt was made to improve the code.
  whitespace		A noweb filter that makes whitespace insignificant
			within chunk names.

Files

Name Size Date Notes
Makefile 2123 2006-04-20 01:00
Makefile.awk 1942 2006-04-20 01:00
README 2255 2006-04-20 01:00
README.h 2848 2006-02-16 01:00
breakmodel.nw 15345 2006-02-16 01:00
compress.nw 43491 2006-02-16 01:00
dag.nw 6087 2006-02-16 01:00
graphs.nw 8298 2006-02-16 01:00
mipscoder.nw 43712 2006-02-16 01:00
multicol.sty 15908 2006-02-16 01:00
primes.bbl 360 2006-02-16 01:00
primes.blg 0 2006-02-16 01:00
primes.nw 6356 2006-02-16 01:00
scanner.nw 15299 2006-02-16 01:00
sharpline 655 2006-02-16 01:00
test.nw 317 2006-02-16 01:00
tree.nw 11871 2006-02-16 01:00
wc.bbl 452 2006-02-16 01:00
wc.nw 12168 2006-02-16 01:00
wc.nw2html 11656 2006-02-16 01:00
whitespace 284 2006-02-16 01:00
Guest Book Sitemap Contact