fortran-src-0.16.3: Parsers and analyses for Fortran standards 66, 77, 90, 95 and 2003 (partial).
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Fortran.Analysis.Renaming

Description

Analyse variables/function names and produce unique names that can be used to replace the original names while maintaining program equivalence (a.k.a. alpha-conversion). The advantage of the unique names is that scoping issues can be ignored when doing further analysis.

Synopsis

Documentation

analyseRenames :: Data a => ProgramFile (Analysis a) -> ProgramFile (Analysis a) Source #

Annotate unique names for variable and function declarations and uses.

analyseRenamesWithModuleMap :: Data a => ModuleMap -> ProgramFile (Analysis a) -> ProgramFile (Analysis a) Source #

Annotate unique names for variable and function declarations and uses. With external module map.

rename :: Data a => ProgramFile (Analysis a) -> ProgramFile (Analysis a) Source #

Take the unique name annotations and substitute them into the actual AST.

unrename :: Data a => ProgramFile (Analysis a) -> ProgramFile (Analysis a) Source #

Take a renamed program and undo the renames.