core-compiler-0.1.0.2: compile your own mini functional language with Core

Safe HaskellSafe
LanguageHaskell2010

Core.Pretty

Synopsis

Documentation

pprint :: CoreProgram -> String Source #

pretty prints a core program

showResults :: Printer Source #

outputs each step the GMachine makes in compiling a program

showFinalResult :: Printer Source #

outputs the final result of evaluating a program with the G machine

type Printer = [GmState] -> [Char] Source #