Xeger.Pattern (Xeger v0.1.0)

View Source

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

Treat it as an opaque token to pass to Xeger.stream/2 or Xeger.take/3 -- the compiled AST it carries is meant for this library's own internal use, not for callers to pattern-match on.

Summary

Types

t()

@type t() :: %Xeger.Pattern{ast: Xeger.AST.t(), opts: keyword()}