fortran-src-0.2.1.1: Parser and anlyses for Fortran standards 66, 77, 90 and 95.

Safe HaskellNone
LanguageHaskell2010

Language.Fortran.LValue

Synopsis

Documentation

data LValue a Source #

A subset of Expression which can only contain values that can be assigned to.

Instances

Functor LValue Source # 

Methods

fmap :: (a -> b) -> LValue a -> LValue b #

(<$) :: a -> LValue b -> LValue a #

Annotated LValue Source # 

Methods

getAnnotation :: LValue a -> a Source #

setAnnotation :: a -> LValue a -> LValue a Source #

modifyAnnotation :: (a -> a) -> LValue a -> LValue a Source #

Eq a => Eq (LValue a) Source # 

Methods

(==) :: LValue a -> LValue a -> Bool #

(/=) :: LValue a -> LValue a -> Bool #

Data a => Data (LValue a) Source # 

Methods

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

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

toConstr :: LValue a -> Constr #

dataTypeOf :: LValue a -> DataType #

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

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

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

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

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

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

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

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

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

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

Show a => Show (LValue a) Source # 

Methods

showsPrec :: Int -> LValue a -> ShowS #

show :: LValue a -> String #

showList :: [LValue a] -> ShowS #

Generic (LValue a) Source # 

Associated Types

type Rep (LValue a) :: * -> * #

Methods

from :: LValue a -> Rep (LValue a) x #

to :: Rep (LValue a) x -> LValue a #

Spanned (LValue a) Source # 
FirstParameter (LValue a) a Source # 
SecondParameter (LValue a) SrcSpan Source # 
type Rep (LValue a) Source # 

toLValue :: Expression a -> Maybe (LValue a) Source #

If the expression can be seen as an lvalue, convert it to an LValue.