暂无描述

rexim fb1638f344 Implement -o flag 4 年之前
.gitignore 16b293cc4c Ready. Set. Go! 4 年之前
LICENSE 16b293cc4c Ready. Set. Go! 4 年之前
Makefile bab0079075 Concat everything into a single file 4 年之前
README.md 16b293cc4c Ready. Set. Go! 4 年之前
bubble.tex 16b293cc4c Ready. Set. Go! 4 年之前
lit.c fb1638f344 Implement -o flag 4 年之前

README.md

Simple Literate Programming System

Inspired by the Literate Haskell.

Quick Start

The idea is to generate the executable program and the documentation from the same file:

$ make
$ ./lit -input bubble.tex > bubble.c
$ cc -c bubble.c
$ pdflatex bubble.tex

How It Works?

The program just iterates through the entire file line by line and comments out everything that is not inside of the "code block" so the final result can be passed to a compiler or an interpreter.

The "code block" markers and the comment style are customizable. See ./lit -help for more information.