Thun/implementations/C
Simon Forman efd77a2ffd Aliases can be put in KEYWORDS.in
This avoids the overhead of single-functions definitions for aliases.
2023-02-07 19:14:37 -08:00
..
.gitignore Ignore object files. 2023-02-02 16:14:11 -08:00
KEYWORDS.in Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
KEYWORDS.txt Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
Makefile eq, neq, gt, ge, lt, le 2023-02-06 13:09:37 -08:00
README.md A README file. 2023-02-05 14:54:33 -08:00
convert_defs.py A bunch of definitions. 2023-02-06 12:59:39 -08:00
definitions.c Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
definitions.h Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
defs.txt Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
joy.c dispatch 2023-02-07 17:44:32 -08:00
joy.h loop 2023-02-05 18:43:05 -08:00
keywords.c Aliases can be put in KEYWORDS.in 2023-02-07 19:14:37 -08:00
notes dip 2023-02-05 08:49:05 -08:00

README.md

Thun in C

This is my first attempt to write C in many years, I hope it's not too embarassing.

I use Gperf to create a static wordlist. This make word lookup very efficient, but there's no way currently to add definitions at runtime.

There's a janky script convert_defs.py that generates definitions.c, definitions.h, and KEYWORDS.txt from the defs.txt file. I would like to replace the dependency on Python with, say, Awk or something.