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
- 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