Xeger.Parser.Actions (Xeger v0.1.0)

View Source

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.

Only the rules/tokens that need to become something other than their own matched text implement a callback here; everything else falls back to Ichor.Actions' defaults (see its moduledoc).