Module steamroller_algebra

An implementation of "Strictly Pretty" (2000) by Christian Lindig [0].

Description

An implementation of "Strictly Pretty" (2000) by Christian Lindig [0].

Inspired by the Elixir implementation of the same paper in Inspect.Algebra. Thanks to the core team for their hard work!

Includes plenty of Erlang-specific additions.

[0] https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.34.2200

Data Types

tokens()

tokens() = steamroller_ast:tokens()

Function Index

format_tokens/2
from_the_paper/2
repeat/2

Function Details

format_tokens/2

format_tokens(Tokens::tokens(), Width::integer()) -> binary()

from_the_paper/2

from_the_paper(Width::integer(), Indent::integer()) -> binary()

repeat/2

repeat(Bin::binary(), Times::integer()) -> binary()


Generated by EDoc