termlib-0.9: Term Rewriting Library

Safe HaskellSafe-Infered

Termlib.TermGraph

Documentation

data EdgeLabel

Constructors

VL Variable 
FL Symbol 

newtype Node

Constructors

Node 

Fields

nodeId :: Int
 

Instances

data Edge

Constructors

Edge 

Fields

target :: Node
 
sources :: [Node]
 
label :: EdgeLabel
 

Instances

mkEdge :: Node -> [Node] -> EdgeLabel -> Edge

mkFun :: Node -> [Node] -> Symbol -> Edge

data TermGraph

Constructors

TermGraph 

Fields

root :: Node
 
edges :: Map Node Edge
 

data St a

Constructors

St 

Fields

content :: a
 
newId :: Int
 

type Position = [Int]

data TermGraphRule

Constructors

TGR 

Fields

lhs :: TermGraph
 
rhs :: TermGraph
 

newtype TGS

Constructors

TGS 

Fields

rules :: [TermGraphRule]