camfort-1.0.1: CamFort - Cambridge Fortran infrastructure
Safe HaskellNone
LanguageHaskell2010

Camfort.Analysis.CommentAnnotator

Synopsis

Documentation

annotateComments :: forall m e a ast. (Monad m, Data a, Linkable a, ASTEmbeddable a ast) => SpecParser e ast -> (SrcSpan -> SpecParseError e -> m ()) -> ProgramFile a -> m (ProgramFile a) Source #

isComment :: HasComment a => a -> Bool Source #

class Linkable a where Source #

Instances of this class can be combined with Block and ProgramUnit.

Methods

link :: a -> Block a -> a Source #

Combine an a with a Block

Combine an a with a ProgramUnit

linkPU :: a -> ProgramUnit a -> a Source #

Instances

Instances details
Linkable HA Source # 
Instance details

Defined in Camfort.Specification.Hoare.Annotation

Methods

link :: HA -> Block HA -> HA Source #

linkPU :: HA -> ProgramUnit HA -> HA Source #

Linkable SA Source # 
Instance details

Defined in Camfort.Specification.Stencils.Annotation

Methods

link :: SA -> Block SA -> SA Source #

linkPU :: SA -> ProgramUnit SA -> SA Source #

Linkable UA Source # 
Instance details

Defined in Camfort.Specification.Units.Annotation

Methods

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

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