No description
| LICENSE | bye, save/load, repo stuff | |
| litline | bootstrap litline into litline | |
| litline.litline | bootstrap litline into litline | |
| README.md | bye, save/load, repo stuff | |
Litlines
Litlines is a small line orient text editor with some literate programming abilities.
> 10 local function fib(n)
> 20 if n == 0 then return 0 end
> 30 if n == 1 then return 1 end
> 40 return fib(n - 1) + fib(n - 2)
> 50 end
> section 10 50 The Fibonacci Function
> 60 local function factorial(n)
> 70 if n == 0 then return 1 end
> 80 return n * factorial(n - 1)
> 90 end
> section 60 90 The Factorial Function
> toc
1. The Fibonacci Function
2. The Factorial Function
> list The Fibonacci Function
10 local function fib(n)
20 if n == 0 then return 0 end
30 if n == 1 then return 1 end
40 return fib(n - 1) + fib(n - 2)
50 end
Commands
<number> <line> - enter some code
list - display program
list <section> - display section
section <number> <number> <title> - create a new section
toc - list all sections
import <file> - import a normal text file into litline
export <file> - export a litline project to a normal file
save <project> - the current litline session
load <project> - load a litline session
quit - end a session