sutori-0.2.4: Sutori language compiler

Safe HaskellSafe
LanguageHaskell2010

Sutori.Logger.Log

Description

Provides a common framework (class) to showSut sutori componentselementsconstructs.

Synopsis

Documentation

class SutShow a where Source #

Interface for pretty-printing Sutori constructs (token, actions, tables, ...)

Minimal complete definition

showSut

Methods

showSut :: a -> SutLog Source #

Allows to pretty-print a Sutori (internal or external) element

data SutLog Source #

Simple tree data structure to allow pretty printing of sutori logs

Constructors

SutLogLeave String

A final message

SutLogNode String [SutLog]

A message with children messages

Instances

Show SutLog Source #

SutLog can be pretty printed on a console

fromLeave :: SutLog -> String Source #

Extract log strings