disco-0.1.5: Functional programming language for teaching discrete math.
Copyrightdisco team and contributors
LicenseBSD-3-Clause
Maintainerbyorgey@gmail.com
Safe HaskellNone
LanguageHaskell2010

Disco.Interpret.CESK

Description

CESK machine interpreter for Disco.

Synopsis

Documentation

data CESK Source #

The CESK machine has two basic kinds of states.

Instances

Instances details
Show CESK Source # 
Instance details

Defined in Disco.Interpret.CESK

Methods

showsPrec :: Int -> CESK -> ShowS #

show :: CESK -> String #

showList :: [CESK] -> ShowS #

runCESK :: Members '[Fresh, Random, State Mem] r => CESK -> Sem r (Either EvalError Value) Source #

Run a CESK machine to completion.

step :: Members '[Fresh, Random, State Mem] r => CESK -> Sem r CESK Source #

Advance the CESK machine by one step.