Skip to main content

distill

Function distill 

Source
pub fn distill(content: &str) -> DistillerOutput
Expand description

Heuristic distiller. Pure-Rust, regex-free, deterministic.

  • Entities: sequences of capitalized whitespace-separated tokens (length ≥ 3) anchored on a leading capital letter.
  • Constants: UPPER_SNAKE_CASE token followed by = or : and a non-whitespace value.
  • Schemas: fenced ``` blocks (any language) and lines beginning with CREATE TABLE / interface / type / struct .