And some protection for inscribe, empty quotes or quotes that do not have a symbol at the first item are just consumed without affecting the user defs. Because the Gperf wordlist is checked before the user defs hash the inscribe command cannot overwrite the commands defined in the wordlist. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| KEYWORDS.in | ||
| KEYWORDS.txt | ||
| Makefile | ||
| README.md | ||
| convert_defs.py | ||
| definitions.c | ||
| definitions.h | ||
| defs.txt | ||
| joy.c | ||
| joy.h | ||
| keywords.c | ||
| notes | ||
| uthash.h | ||
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.