Thun/implementations/C
Simon Forman b57cfdf825 Track KEYWORDS.txt after all. 2023-02-06 13:14:14 -08:00
..
.gitignore Ignore object files. 2023-02-02 16:14:11 -08:00
KEYWORDS.in loop 2023-02-05 18:43:05 -08:00
KEYWORDS.txt Track KEYWORDS.txt after all. 2023-02-06 13:14:14 -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 eq, neq, gt, ge, lt, le 2023-02-06 13:09:37 -08:00
definitions.h eq, neq, gt, ge, lt, le 2023-02-06 13:09:37 -08:00
defs.txt eq, neq, gt, ge, lt, le 2023-02-06 13:09:37 -08:00
joy.c Use setjmp/longjmp to recover after errors. 2023-02-06 00:30:25 -08:00
joy.h loop 2023-02-05 18:43:05 -08:00
keywords.c eq, neq, gt, ge, lt, le 2023-02-06 13:09: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.