A literature programming tool -- by Yijun Yu

Usage

Markup Documents (e.g. LaTeX)

  1. Add one line to the beginning
  2. \usepackage{lp}
    
    Note. Add either
    \newif\iflp\ifx\lp\undefined \lptrue \else \lpfalse \fi
    \newif\iflpexplicit\ifx\lpexplicit\undefined \lpexplicittrue \else \lpexplicitfalse \fi
    
    or
    \newif\iflp\ifx\lp\undefined \lpfalse \else \lptrue \fi
    \newif\iflpexplicit\ifx\lpexplicit\undefined \lpexplicitfalse \else \lpexplicittrue \fi
    
    To control whether to output the highlighted typeset document or not.
  3. Use the following macros to markup your document for define, use, import and export of the concepts
  4. \use{FooBar}{foo bar is used}
    \define{FooBar}{blabla is defined}
    \import{FooBar}{... \cite{..}}
    \export{FooBar}{...}
    
    Here is an Example.

Generating Programs

  1. Just call your usual LaTeX or PDFLaTeX processors
  2. Here are example error messages.

Analyzing Programs

  1. Just call the C/C++ compiler
  2. Here are example error messages.

Development

Download

References


Design decisions

General thoughts

Document processors: Word/OpenDoc, LaTeX, DocBook, TEI,

Literate programming tools: WEB,


ChangeLog

Date: Nov 30, 2006 submitted Date: Nov 28, 2006 applied literature programming to authoring paper itself Date: Aug 14, 2006 applied literature programming to understanding the ICSE paper