No Description

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

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.