gibbon-0.3: A compiler for operating on serialized data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gibbon.L4.Interp

Description

Interpreter for the target language (L4)

Documentation

data Val Source #

Constructors

FunVal FunDecl 
IntVal Int

These also serve as Bools

CharVal Char 
FloatVal Double

These also serve as Bools

TagVal Tag 
BufVal (Seq Int)

Tags are also written as integers.

Instances

Instances details
Out Val Source # 
Instance details

Defined in Gibbon.L4.Interp

Methods

docPrec :: Int -> Val -> Doc Source #

doc :: Val -> Doc Source #

docList :: [Val] -> Doc Source #

Generic Val Source # 
Instance details

Defined in Gibbon.L4.Interp

Associated Types

type Rep Val :: Type -> Type Source #

Methods

from :: Val -> Rep Val x Source #

to :: Rep Val x -> Val Source #

Show Val Source # 
Instance details

Defined in Gibbon.L4.Interp

NFData Val Source # 
Instance details

Defined in Gibbon.L4.Interp

Methods

rnf :: Val -> () Source #

Eq Val Source # 
Instance details

Defined in Gibbon.L4.Interp

Methods

(==) :: Val -> Val -> Bool Source #

(/=) :: Val -> Val -> Bool Source #

type Rep Val Source # 
Instance details

Defined in Gibbon.L4.Interp

applyPrim :: Prim -> [Val] -> IO [Val] Source #

Orphan instances

Out TimeSpec Source # 
Instance details

NFData TimeSpec Source # 
Instance details

Methods

rnf :: TimeSpec -> () Source #

Out (Seq Int) Source # 
Instance details

Methods

docPrec :: Int -> Seq Int -> Doc Source #

doc :: Seq Int -> Doc Source #

docList :: [Seq Int] -> Doc Source #