camfort-0.904: CamFort - Cambridge Fortran infrastructure

Safe HaskellNone
LanguageHaskell2010

Camfort.Analysis.Annotations

Contents

Synopsis

Annotation Datatype

data Annotation Source #

Constructors

A 

Instances

Eq Annotation Source # 
Data Annotation Source # 

Methods

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

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

toConstr :: Annotation -> Constr #

dataTypeOf :: Annotation -> DataType #

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

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

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

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

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

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

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

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

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

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

Show Annotation Source # 
Linkable UA Source # 

Methods

link :: UA -> Block UA -> UA Source #

linkPU :: UA -> ProgramUnit UA -> UA Source #

ASTEmbeddable UA UnitStatement Source # 
OutputFiles (ProgramFile Annotation, SourceText) Source # 

Predicates

Transformation Helpers

onPrev :: (a -> a) -> Analysis a -> Analysis a Source #

Specification Annotation Helpers

getAstSpec :: Annotation -> Maybe SpecDecls Source #

Retrieve a normalized specification from an annotation.

getParseSpec :: Annotation -> Maybe Specification Source #

Retrieve a parsed specification from an annotation.

getRegionSpec :: Annotation -> Maybe RegionDecl Source #

Retrieve a region environment from an annotation.

giveAstSpec :: SpecDecls -> Annotation -> Annotation Source #

Set the annotation's stencil specification to a normalized specification.

giveParseSpec :: Specification -> Annotation -> Annotation Source #

Set the annotation's stencil specification to a parsed specification.

giveRegionSpec :: RegionDecl -> Annotation -> Annotation Source #

Set the annotation's stencil specification to a region alias.

Other Helpers

buildCommentText :: MetaInfo -> Int -> String -> String Source #

Build a Fortran comment string appropriate for the Fortran version.