wildling
C library and CLI for pattern-based string generation. Zero third-party libraries — C11 + POSIX regex.h (for pattern splitting) and a minimal JSON parser for --template.
Docs: Website · Sandbox · Syntax · Source
Registry: GitHub Releases
Example
Install
From this repository:
cd c
./build.sh
./bin/wildling "Year 19##"
From a release tag:
git clone --branch v2.0.7 --depth 1 https://github.com/dotmonk/wildling.git
cd wildling
./build.sh c
GitHub Release assets (Linux x86_64 CLI + source tarballs) are attached to each vX.Y.Z release.
CMake (library + CLI), including FetchContent from the monorepo:
include(FetchContent)
FetchContent_Declare(
wildling
GIT_REPOSITORY https://github.com/dotmonk/wildling.git
GIT_TAG v2.0.7
SOURCE_SUBDIR c
)
FetchContent_MakeAvailable(wildling)
target_link_libraries(myapp PRIVATE wildling)
Produces dist/wildling. Link the sources under src/ (except cli.c) to use as a library.
CLI
./bin/wildling "Year 19##"
./bin/wildling --dictionary planets:../dictionaries/planets.txt "%{'planets'}"
./bin/wildling --template ./config.json
Help text and --check output follow docs/cli.md / docs/help.txt.
Build
./build.sh # Docker (gcc:14-bookworm): gcc -std=c11 → dist/wildling
Project tests live in ../tests/ and are run with ../test.sh.