Thun/implementations/C
sforman a34a2b1aab Compile on Ubuntu. 2023-07-24 11:29:39 -07:00
..
.gitignore Ignore object files. 2023-02-02 16:14:11 -08:00
KEYWORDS.in How would you compile this? 2023-02-19 17:43:18 -08:00
KEYWORDS.txt How would you compile this? 2023-02-19 17:43:18 -08:00
Makefile Compile on Ubuntu. 2023-07-24 11:29:39 -07:00
README.md Compile on Ubuntu. 2023-07-24 11:29:39 -07:00
build.yml Build manifest for sr.ht. 2023-02-10 08:10:47 -08:00
convert_defs.py regularize defs.txt; new andies. 2023-02-14 08:27:17 -08:00
definitions.c or instead of ||, and instead of && 2023-02-14 12:27:46 -08:00
definitions.h or instead of ||, and instead of && 2023-02-14 12:27:46 -08:00
defs.txt or instead of ||, and instead of && 2023-02-14 12:27:46 -08:00
joy.c Line editing with linenoise. 2023-02-20 10:20:40 -08:00
joy.h Minor cleanup. 2023-02-20 06:38:18 -08:00
keywords.c How would you compile this? 2023-02-19 17:43:18 -08:00
linenoise.c Line editing with linenoise. 2023-02-20 10:20:40 -08:00
linenoise.h Line editing with linenoise. 2023-02-20 10:20:40 -08:00
notes Compile on Ubuntu. 2023-07-24 11:29:39 -07:00
rax.h Let's use rax to generate tab completions? 2023-02-20 11:19:27 -08:00
try_rax.c Allocate a buffer just large enough. 2023-02-20 16:23:41 -08:00
uthash.h User definitions with the inscribe command. 2023-02-08 21:13:23 -08:00
vlist.c vlist.c 2023-02-17 11:07:32 -08:00

README.md

Thun in C

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

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.

Dependencies

  • python

  • gperf

  • gmake

  • boehm-gc

  • gmp

    sudo apt install gperf