howl-0.1.0.0: A small Wolfram Language interpreter and symbolic rewriting library
Safe HaskellNone
LanguageGHC2021

Howl.Expr.PPrint

Description

Pretty-printing of expressions using Wolfram Language surface syntax.

Synopsis

Documentation

data Prec #

Precedence levels for pretty printing (higher = binds tighter)

Instances

Instances details
Eq Prec # 
Instance details

Defined in Howl.Expr.PPrint

Methods

(==) :: Prec -> Prec -> Bool #

(/=) :: Prec -> Prec -> Bool #

Ord Prec # 
Instance details

Defined in Howl.Expr.PPrint

Methods

compare :: Prec -> Prec -> Ordering #

(<) :: Prec -> Prec -> Bool #

(<=) :: Prec -> Prec -> Bool #

(>) :: Prec -> Prec -> Bool #

(>=) :: Prec -> Prec -> Bool #

max :: Prec -> Prec -> Prec #

min :: Prec -> Prec -> Prec #

pPrintPrec :: Prec -> Expr -> String #

Pretty print with precedence context

pPrintLit :: Literal -> String #

Pretty print a literal (defined here to avoid import cycle)

Orphan instances

PPrint Expr # 
Instance details

Methods

pPrint :: Expr -> String #