Safe Haskell | None |
---|---|
Language | Haskell98 |
- data GTm
- class GTermAs cnstr guard bprio prio tm | cnstr -> guard bprio prio tm, guard -> cnstr bprio prio tm, bprio -> cnstr guard prio tm, prio -> cnstr guard bprio tm, tm -> cnstr guard bprio prio where
- asTm :: GTm -> GTermAsM tm
- asTmList :: GTm -> GTermAsM ([tm], Maybe tm)
- asHeadConstraint :: GTm -> GTermAsM cnstr
- asBodyConstraint :: GTm -> GTermAsM cnstr
- asGuard :: GTm -> GTermAsM guard
- asHeadBacktrackPrio :: GTm -> GTermAsM bprio
- asAltBacktrackPrio :: GTm -> GTermAsM bprio
- asRulePrio :: GTm -> GTermAsM prio
- gtermasFail :: GTm -> String -> GTermAsM a
- parseFile :: GTermAs c g bp rp tm => FilePath -> IO (Either PP_Doc ([Rule c g bp rp], [c]))
Documentation
Terms
class GTermAs cnstr guard bprio prio tm | cnstr -> guard bprio prio tm, guard -> cnstr bprio prio tm, bprio -> cnstr guard prio tm, prio -> cnstr guard bprio tm, tm -> cnstr guard bprio prio where Source
Term interpretation in context of CHR
asTm, asHeadConstraint, asBodyConstraint, asGuard, asHeadBacktrackPrio, asAltBacktrackPrio, asRulePrio
asTm :: GTm -> GTermAsM tm Source
asTmList :: GTm -> GTermAsM ([tm], Maybe tm) Source
as list, if matches/possible. Only to be invoked for GTm_Cns
asHeadConstraint :: GTm -> GTermAsM cnstr Source
asBodyConstraint :: GTm -> GTermAsM cnstr Source
asGuard :: GTm -> GTermAsM guard Source
asHeadBacktrackPrio :: GTm -> GTermAsM bprio Source
asAltBacktrackPrio :: GTm -> GTermAsM bprio Source
asRulePrio :: GTm -> GTermAsM prio Source
gtermasFail :: GTm -> String -> GTermAsM a Source
Fail the interpretation