Hets - the Heterogeneous Tool Set

Copyright(c) DFKI GmbH 2009
LicenseGPLv2 or higher, see LICENSE.txt
Maintainerariesco@fdi.ucm.es
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred

Maude.AS_Maude

Contents

Description

The abstract syntax of maude. Basic specs are a list of statements excluding imports. Sentences are equations, membership axioms, and rules. Sort, subsort and operations should be converted to signature.

Because maude parses and typechecks an input string in one go, basic specs for the logic instance are just a wrapped string that is created by a simple parser.

Synopsis

Types

type Qid = Token

Construction

mkVar :: String -> Type -> Term

Create a Var Term from the given arguments.

Information Extraction

getTermType :: Term -> Type

Extract the Type from the given Term.

Attribute Classification

assoc :: Attr -> Bool

True iff the argument is the assoc attribute.

comm :: Attr -> Bool

True iff the argument is the comm attribute.

idem :: Attr -> Bool

True iff the argument is the idem attribute.

idtty :: Attr -> Bool

True iff the argument is the identity attribute.

leftId :: Attr -> Bool

True iff the argument is the left identity attribute.

rightId :: Attr -> Bool

True iff the argument is the right identity attribute.

ctor :: Attr -> Bool

True iff the argument is the ctor attribute.

owise :: StmntAttr -> Bool

True iff the argument is the owise attribute.