Skip to content

Commit 36a20a8

Browse files
author
mokrates
committed
made README prettier
1 parent 12a3e08 commit 36a20a8

File tree

3 files changed

+81
-23
lines changed

3 files changed

+81
-23
lines changed

README

Lines changed: 70 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
1-
╭────────────────╮
2-
│ │
3-
│ │
4-
│ ╲ │
5-
│ ╲ (λ) │
6-
│ │╲~~│ │
7-
│ │ ╲ │ │
8-
│ ╰───╯ │
9-
│ │
10-
│ │
11-
╰────────────────╯
12-
1+
_ _ \
2+
| (_)_ __ ___ ___ \ (λ)
3+
| | | '_ ` _ \ / _ \ |\~~|
4+
| | | | | | | | (_) || \ |
5+
|_|_|_| |_| |_|\___/ |___|
6+
137

14-
written by M. "mokrates" Molle
8+
written by Moritz Molle
159

1610
Licensed under GPL (v3) (applies to all files in this tarball)
1711
http://www.gnu.org/licenses/gpl.html
1812

19-
**************************************
13+
____
2014

2115
for the impatient:
22-
$ bash build.sh
16+
$ bash build.sh bin
2317
builds and installs limo into ~/.local/bin and ~/.local/lib
2418

25-
$ make limo-almost-static
19+
Installing systemwide:
20+
$ make
2621
$ make install
2722
builds and installs into /usr/local/
2823

24+
## Custom prefix
2925
You can define a prefix where limo should be installed by giving make
3026
a INSTALL_PREFIX:
3127
$ make clean
@@ -34,9 +30,12 @@ $ make INSTALL_PREFIX=/usr/local/ install
3430
please be aware that the INSTALL_PREFIX should be given to all the
3531
make targets.
3632

37-
It it advisable to always make clean before every build.
33+
It it advisable to always make clean before every build. build.sh does this.
3834

39-
**************************************
35+
build.sh:
36+
build.sh is _really_ simple, I recommend to modify it to your needs and use that.
37+
38+
***************************************
4039

4140
dependencies:
4241

@@ -57,13 +56,25 @@ library, add it to inlined.mods
5756

5857
Library dependencies:
5958
ncurses: ncurses
60-
ncmenu: ncurses ncmenu
59+
ncmenu: ncurses ncmenu (if you inline ncmenu, you have also have to inline ncurses)
6160
sdl: sdl
6261
simplesdl: sdl
62+
limogtk: gtk3
63+
64+
limogtk
65+
=======
66+
Not built by default. This is very dirty stuff.
67+
1. You need a working limo installed to build limogtk
68+
2. this takes a while. The scripts generate C code from the gtk header files.
69+
70+
~/limo$ cd libs/limogtk
71+
~/limo/libs/limogtk$ make clean
72+
~/limo/libs/limogtk$ make
73+
~/limo/libs/limogtk$ cd ../..
74+
75+
~/limo$ make install
76+
or ~/limo$ bash build.sh
6377

64-
NCMENU
65-
If you build ncmenu, you have to inline or not inline it just like
66-
ncurses. If you don't limo segfaults.
6778

6879
Building on MAC OS X
6980
====================
@@ -74,6 +85,10 @@ Building on Windows Subsystem for Linux (WSL)
7485
=============================================
7586
You have to use the limo-wsl or limo-almost-static target.
7687

88+
Attributions and Licenses
89+
=========================
90+
As not 100% of the code is mine, please have a look at attributions.txt
91+
7792
**************************************
7893

7994
specials:
@@ -98,3 +113,36 @@ dcons/#<thunk> : #<thunk> are instances of a type which cannot be instatiated by
98113
argument, packs the second into an #<thunk> and cons'es those two.
99114
this way the cdr of the cons only gets evaluated, when cdr() is called on the
100115
cons. this is limo's way of implementing iterators.
116+
117+
There's tons of other stuff:
118+
language:
119+
- tailcall optimization
120+
- multithreading
121+
- objects/classes
122+
- bignums/quotients
123+
- macros
124+
125+
simple libraries:
126+
- simplest networking (sockets)
127+
- simple graphics (sdl/gtk/ncurses)
128+
129+
EXAMPLES
130+
========
131+
132+
Tetris
133+
------
134+
You can play tetris
135+
limo examples/tetris.limo
136+
137+
Snake
138+
-----
139+
You can see snake beat itself:
140+
limo examples/autosnake2.limo 10 10
141+
142+
mandelbrot
143+
----------
144+
The usual mandelbrot fractal rendered with sdl
145+
146+
more
147+
----
148+
just see the examples/-directory.

attributions.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ might think "yeah, sure", but, yeah, I really use it... a bit.)
77

88
It is usually required to give credit if one steals foreign code, but
99
even if it weren't, it is common courtesy to do so. So this here is
10-
where the credit is to be given.
10+
where the credit is given.
1111

1212
M. Molle
1313

@@ -18,12 +18,16 @@ M. Molle
1818
https://stackoverflow.com/questions/32936646/getting-the-string-length-on-utf-8-in-c
1919

2020
- the dictionary-code in dict.c I copied from the python2 source code.
21+
http://www.laurentluce.com/posts/python-dictionary-implementation/
2122

2223
- libs/popen
2324
I use a popen3, which I adapted.
2425
taken from here:
2526
https://gist.github.com/mike-bourgeous/2be6c8900bf624887fe5fee4f28552ef
27+
This is, as the site states, in the public domain.
2628
* Mike Bourgeous
2729
* https://github.com/mike-bourgeous
2830
* http://www.mikebourgeous.com/
2931

32+
- libs/sdl/DejavuSansMono.ttf
33+
See libs/sdl/Font.license

limo-logo/figlet.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_ _ \
2+
| (_)_ __ ___ ___ \ (λ)
3+
| | | '_ ` _ \ / _ \ |\~~|
4+
| | | | | | | | (_) || \ |
5+
|_|_|_| |_| |_|\___/ |___|
6+

0 commit comments

Comments
 (0)