frostc-1.0.0.0: The Frost Programming Language Compiler
Safe HaskellSafe-Inferred
LanguageHaskell2010

Codegen.State

Synopsis

Documentation

type LocalState = [(String, Operand)] Source #

Type alias for the local code generation state.

type GlobalState = [(String, Operand)] Source #

Type alias for the global code generation state.

type LoopState = Maybe (Name, Name) Source #

Type alias for the loop code generation state.

type UniqueNameState = Integer Source #

Type alias for the variables name .

data CodegenState Source #

Combined state for code generation.

Instances

Instances details
Show CodegenState Source # 
Instance details

Defined in Codegen.State

class Monad m => VarBinding m where Source #

Variable binding typeclass.

Instances

Instances details
(MonadState CodegenState m, Monad m) => VarBinding m Source # 
Instance details

Defined in Codegen.State