coil-regex

PCRE2-backed regular expressions for coil. src/regex.hy binds libpcre2-8 directly with extern; there is no C shim.

Package layout#

PathRole
src/regex.hyRegex class, RegexError, free functions
tests/regex.hycoil test suite
examples/regex_demo.hyEnd-to-end demo

Test#

From this directory (with coil on PATH or via cargo run --bin coil from coil-lang):

make test

make test finds libpcre2-8 with pkg-config (override with PCRE2_LIBDIR=…) and passes its SHA-256 to --dload-pin pcre2-8=….

See also#

  • api.md — function reference
  • consume.md. Sibling checkout, spool add, dload flags

Synced from coil-regex/docs/README.md . Edit it there; changes reach this site on the next package sync.

↑ ↓ navigate ↵ open