camfort-0.904: 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 ASTEmbeddable a ast where Source #

Minimal complete definition

annotateWithAST

Methods

annotateWithAST :: a -> ast -> a Source #

class Linkable a where Source #

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

Minimal complete definition

link, linkPU

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