mini-go-0.3.0.0: Mini Go parser and interpreter
Safe HaskellSafe-Inferred
LanguageHaskell2010

Analyzer.AnalyzedType

Description

Types representation during the analysis process.

Synopsis

Documentation

data Type Source #

Type representation during the analysis process.

Constructors

TInt

32-bit/64-bit (depending on the machine) integer type.

TBool

Boolean type.

TString

String type.

TArray Type Int

Array type, it contains the length of the array and its elements type.

TFunction FunctionType

Function type, see FunctionType.

TNil

Null type.

Instances

Instances details
Show Type Source # 
Instance details

Defined in Analyzer.AnalyzedType

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

Eq Type Source # 
Instance details

Defined in Analyzer.AnalyzedType

Methods

(==) :: Type -> Type -> Bool #

(/=) :: Type -> Type -> Bool #

data FunctionType Source #

Function type, it contains the result of the function (which can be void if the result is equal to Nothing) and its parameters types.

Constructors

FunctionType 

Instances

Instances details
Show FunctionType Source # 
Instance details

Defined in Analyzer.AnalyzedType

Eq FunctionType Source # 
Instance details

Defined in Analyzer.AnalyzedType