Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a number of helper functions for working with Fortran syntax that are useful between different analyses and transformations.
- caml :: [Char] -> [Char]
- data AnnotationFree t = AnnotationFree {
- annotationBound :: t
- af :: t -> AnnotationFree t
- extractVariable :: Expression a -> Maybe Name
- afterAligned :: SrcSpan -> Position
- deleteLine :: SrcSpan -> SrcSpan
- dropLine :: SrcSpan -> SrcSpan
- linesCovered :: Position -> Position -> Int
- toCol0 :: Position -> Position
Variable renaming helpers
Comparison and ordering
data AnnotationFree t Source #
AnnotationFree
is a data type that wraps other types and denotes terms
which should be compared for equality modulo their annotations and source
location information
Eq (AnnotationFree a) => Eq (AnnotationFree [a]) Source # | |
(Eq (AnnotationFree a), Eq (AnnotationFree b)) => Eq (AnnotationFree (a, b)) Source # | |
Eq (AnnotationFree BaseType) Source # | |
Eq a => Eq (AnnotationFree (Expression a)) Source # | |
Show t => Show (AnnotationFree t) Source # | |
af :: t -> AnnotationFree t Source #
short-hand constructor for AnnotationFree
Accessor functions for extracting various pieces of information
extractVariable :: Expression a -> Maybe Name Source #
Extracts a string of the (root) variable name from an expression, e.g., extractVariable "v" = Just v extractVariable "v(i)" = Just v
SrcSpan Helpers
afterAligned :: SrcSpan -> Position Source #
deleteLine :: SrcSpan -> SrcSpan Source #