Pantagruel v0.3.0 Pantagruel.Format View Source

Takes an evaluated Pantagruel program and generates a formatted text representation of it.

Link to this section Summary

Functions

Format an individual expression

Generate a string representation of a parsed program section

Generate a string representation of an evaluated program

Link to this section Types

Link to this section Guards

Link to this section Functions

Link to this function format_chapters(chapters) View Source
Link to this function format_env(env) View Source
format_env(Pantagruel.Env.t()) :: t()
Link to this function format_exp(value, scope \\ []) View Source
format_exp(any(), [%{}]) :: t()

Format an individual expression.

Generate a string representation of a parsed program section.

Link to this function format_program(arg) View Source
format_program({:program, [any(), ...]}) :: t()

Generate a string representation of an evaluated program.