fortran-vars-0.4.0: Fortran memory model and other static analysis tools.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Fortran.Vars.Types.SymbolTable

Description

Only the SymbolTable definitions.

Synopsis

Documentation

type SymbolTable = Map Name SymbolTableEntry Source #

Symbol table containing all non-intrisic symbols declared in a program

data SymbolTableEntry Source #

An entry in the SymbolTable for some variable

Constructors

SParameter 

Fields

SVariable 

Fields

SDummy 

Fields

SExternal 

Fields

Instances

Instances details
FromJSON SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

ToJSON SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

Data SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SymbolTableEntry -> c SymbolTableEntry Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SymbolTableEntry Source #

toConstr :: SymbolTableEntry -> Constr Source #

dataTypeOf :: SymbolTableEntry -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SymbolTableEntry) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SymbolTableEntry) Source #

gmapT :: (forall b. Data b => b -> b) -> SymbolTableEntry -> SymbolTableEntry Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SymbolTableEntry -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SymbolTableEntry -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> SymbolTableEntry -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SymbolTableEntry -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SymbolTableEntry -> m SymbolTableEntry Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SymbolTableEntry -> m SymbolTableEntry Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SymbolTableEntry -> m SymbolTableEntry Source #

Generic SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

Associated Types

type Rep SymbolTableEntry :: Type -> Type Source #

Show SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

Eq SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

Ord SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

MonadReader SymbolTable Eval Source # 
Instance details

Defined in Language.Fortran.Vars.Eval.FortranSrc

type Rep SymbolTableEntry Source # 
Instance details

Defined in Language.Fortran.Vars.Types.SymbolTable

type Rep SymbolTableEntry = D1 ('MetaData "SymbolTableEntry" "Language.Fortran.Vars.Types.SymbolTable" "fortran-vars-0.4.0-inplace" 'False) ((C1 ('MetaCons "SParameter" 'PrefixI 'True) (S1 ('MetaSel ('Just "parType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: S1 ('MetaSel ('Just "parVal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ExpVal)) :+: C1 ('MetaCons "SVariable" 'PrefixI 'True) (S1 ('MetaSel ('Just "varType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type) :*: S1 ('MetaSel ('Just "varLoc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Location))) :+: (C1 ('MetaCons "SDummy" 'PrefixI 'True) (S1 ('MetaSel ('Just "dumType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type)) :+: C1 ('MetaCons "SExternal" 'PrefixI 'True) (S1 ('MetaSel ('Just "extType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Type))))

type Location = (MemoryBlockName, Offset) Source #

The location of a variable, i.e. the MemoryBlockName that contains it as well as the Offset to its location in memory

type MemoryBlockName = Name Source #

The name of block of memory

type Offset = Int Source #

Memory offset given to a variable in memory