Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data RelationItem
- type Relation = Set (RelationItem, RelationItem)
- type AbstractRelation = Set (AbstractType, (RelationItem, RelationItem), (RelationItem, RelationItem))
- data AbstractType
- isRuleAndElement :: (RelationItem, RelationItem) -> Bool
- filterRulesOccurrenceRelation :: Relation -> Relation
- filterElementsOccurrenceRelation :: Relation -> Relation
- filterCreationRelation :: Relation -> Relation
- filterDeletionRelation :: Relation -> Relation
- isCreation :: (RelationItem, RelationItem) -> Bool
- isDeletion :: (RelationItem, RelationItem) -> Bool
- isNode :: RelationItem -> Bool
- happensAfterAction :: Relation -> RelationItem -> String -> Bool
- happensBeforeAction :: Relation -> RelationItem -> String -> Bool
- relatedItens :: Relation -> (RelationItem, RelationItem) -> Bool
- neverDeleted :: RelationItem -> Relation -> Bool
- present :: RelationItem -> Relation -> Bool
- findOrder :: Relation -> Set RelationItem -> Maybe [RelationItem]
- buildTransitivity :: Relation -> Relation
- relationToString :: Relation -> String
- restrictionToString :: AbstractRelation -> String
Documentation
data RelationItem Source #
type Relation = Set (RelationItem, RelationItem) Source #
type AbstractRelation = Set (AbstractType, (RelationItem, RelationItem), (RelationItem, RelationItem)) Source #
data AbstractType Source #
isRuleAndElement :: (RelationItem, RelationItem) -> Bool Source #
isCreation :: (RelationItem, RelationItem) -> Bool Source #
isDeletion :: (RelationItem, RelationItem) -> Bool Source #
isNode :: RelationItem -> Bool Source #
happensAfterAction :: Relation -> RelationItem -> String -> Bool Source #
Tests wether an item appears after a rule in a given occurrence relation
happensBeforeAction :: Relation -> RelationItem -> String -> Bool Source #
Tests wether an item appears before a rule in a given occurrence relation
relatedItens :: Relation -> (RelationItem, RelationItem) -> Bool Source #
neverDeleted :: RelationItem -> Relation -> Bool Source #
Given a relation item i
and the deletion relation of an doubly typed grammar,
it returns True if the item is deleted by some rule in this relation and False otherwise
findOrder :: Relation -> Set RelationItem -> Maybe [RelationItem] Source #
buildTransitivity :: Relation -> Relation Source #
relationToString :: Relation -> String Source #