Xeger. Parser
(Xeger v0.1.0)
View Source
Parser for Xeger pattern syntax.
Converts a regex-like pattern string into an internal AST representation.
A thin adapter over the generated parser at lib/xeger/grammar.ex
(compiled from priv/grammar/xeger.aether by mix ichor.gen -- see
that file's own banner comment to regenerate it after editing the
grammar), translating its Ichor.Error results to the plain error
message this module's own callers expect.
Summary
Functions
@spec parse(binary()) :: {:ok, Xeger.AST.t()} | {:error, binary()}