Module mice::mir::fmt

source · []
Expand description

MIR based intermediate result formatting.

The MIR node types that deal in annotating intermediate results must not be specific to any particular dice operators, as the plan is to build new operators on top of MIR and make the evaluation backend agnostic to how formatting of the structured data it produces ends up being done.

Stuff in here doesn’t take much care to be fast, since we know it will not be used inside of an especially hot loop.

Enums

An annotation is a descriptive piece of data whose contents are known prior to dice program evaluation, that can be attached to nodes in the tree structure that keeps important intermediate results of a running dice program.

A naive representation of tree structured output by dice programs.

Functions

Format the output of a dice expression as usual in mbot.

Like mbot_format_default, but the shorter format.