1
0
Fork
You've already forked litlines
0
No description
2025年09月04日 18:29:08 -04:00
LICENSE bye, save/load, repo stuff 2025年09月03日 20:29:32 -04:00
litline bootstrap litline into litline 2025年09月04日 18:29:08 -04:00
litline.litline bootstrap litline into litline 2025年09月04日 18:29:08 -04:00
README.md bye, save/load, repo stuff 2025年09月03日 20:29:32 -04:00

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