Nessuna descrizione

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

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.