API Reference Xeger v#0.1.0

View Source

Modules

Xeger turns a regex-like pattern into a stream of strings that match it.

Internal AST for Xeger patterns.

Generator for string enumeration from AST patterns.

Parser for Xeger pattern syntax.

Turns a parse of priv/grammar/xeger.aether into a Xeger.AST.t() directly -- unlike a typical Ichor.Actions module (which usually builds a Grammar.IR tree, an executable-grammar representation), this one targets Xeger's own much smaller AST straight away, since that's the only thing Xeger.Generator ever consumes.

A compiled Xeger pattern, as returned by Xeger.compile/2 and Xeger.compile!/2.

Generates a single random string matching an AST, without enumerating the full match set: makes one random choice at each node (which alternative, how many repeats, which codepoint) instead of walking every possibility.