alga-0.2.1: Algorithmic automation for various DAWs

Safe HaskellNone
LanguageHaskell2010

Alga.Representation.Show

Synopsis

Documentation

showStatement :: Statement -> Text Source

Render a statement. This handles definitions and expositions.

showDefinition Source

Arguments

:: String

Reference name

-> SyntaxTree

Syntax tree

-> Text

Textual representation of definition

Render definition.

showSyntaxTree :: SyntaxTree -> Text Source

Render syntax tree.

showPrinciple :: Principle -> Text Source

Show principle. This is useful for printing of simplified principles back to user. We can use the same pretty-printing algorithm as for syntax trees, but this requires us to perform transformation from Principle to SyntaxTree, which is trivial.