Pantagruel v0.0.7 Pantagruel.Format View Source

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

Link to this section Summary

Functions

Print an individual expression

Generate a string representation of an evaluated program

Generate a string representation of a parsed program section

Link to this section Types

Link to this section Functions

Link to this function format_exp(value, scope \\ []) View Source
format_exp(any(), [%{}]) :: t()

Print an individual expression.

Link to this function format_program(parsed) View Source
format_program(Pantagruel.Parse.t()) :: t()

Generate a string representation of an evaluated program.

Link to this function format_scopes(scopes) View Source
format_scopes(Pantagruel.Env.t()) :: t()

Generate a string representation of a parsed program section.