maude-help AT lists.siebelschool.illinois.edu
Subject: Maude-help mailing list
List archive
- From: Mark Yu <fangwenmahu AT hotmail.com>
- To: <maude-help AT cs.uiuc.edu>
- Subject: [Maude-help] How can I define the sentence about MAUDE?
- Date: Wed, 27 Jun 2012 02:34:49 +0000
- Importance: Normal
- List-archive: <http://lists.cs.uiuc.edu/pipermail/maude-help>
- List-id: <maude-help.cs.uiuc.edu>
Dear Sir :
I am a postgraduate from Taibei University. I am facing some problems about MAUDE now .
The example on Book is
*************************************************
mod RELAY is
pr ELECTRICAL-COMPONENT .
pr SATISFACTION .
sort Relay .
subsort Relay < ElectricalComponent .
op Relay : -> Relay [ctor] .
op drawn :_ : Bool -> Attribute [ctor gather (&)] .
var B : Bool .
var R : Qid .
var VRelay : Relay .
var ATTS : AttributeSet .
var CONF : Configuration .
ops canDraw canDrop : Qid Configuration -> Bool [memo] .
eq canDraw(R, CONF) = false [owise] .
eq canDrop(R, CONF) = false [owise] .
op idle : Qid Configuration -> Bool .
ceq idle(< R : VRelay | drawn : false, ATTS > CONF) = false if canDraw(R, (< R : VRelay | drawn : false, ATTS > CONF)) .
ceq idle(< R : VRelay | drawn : true, ATTS > CONF) = false if canDrop(R, (< R : VRelay | drawn : true, ATTS > CONF)) .
endm
**************************************************
The red Words has reported the error . I think it's a defining problem .
I have quoted the MAUDE built-in module . For example," op <_:_|_> : Oid Cid AttributeSet -> Object [ctor] ." in module CONFIGURATION .
I don't know about How to define the red sentence.
I think I can't solve the problem , please give me some tips. We are looking forward to your response.
Sincerely,
! Mark Yu
I am a postgraduate from Taibei University. I am facing some problems about MAUDE now .
The example on Book is
*************************************************
mod RELAY is
pr ELECTRICAL-COMPONENT .
pr SATISFACTION .
sort Relay .
subsort Relay < ElectricalComponent .
op Relay : -> Relay [ctor] .
op drawn :_ : Bool -> Attribute [ctor gather (&)] .
var B : Bool .
var R : Qid .
var VRelay : Relay .
var ATTS : AttributeSet .
var CONF : Configuration .
ops canDraw canDrop : Qid Configuration -> Bool [memo] .
eq canDraw(R, CONF) = false [owise] .
eq canDrop(R, CONF) = false [owise] .
op idle : Qid Configuration -> Bool .
ceq idle(< R : VRelay | drawn : false, ATTS > CONF) = false if canDraw(R, (< R : VRelay | drawn : false, ATTS > CONF)) .
ceq idle(< R : VRelay | drawn : true, ATTS > CONF) = false if canDrop(R, (< R : VRelay | drawn : true, ATTS > CONF)) .
endm
**************************************************
The red Words has reported the error . I think it's a defining problem .
I have quoted the MAUDE built-in module . For example," op <_:_|_> : Oid Cid AttributeSet -> Object [ctor] ." in module CONFIGURATION .
I don't know about How to define the red sentence.
I think I can't solve the problem , please give me some tips. We are looking forward to your response.
Sincerely,
! Mark Yu
- [Maude-help] How can I define the sentence about MAUDE?, Mark Yu, 06/26/2012
- Re: [Maude-help] How can I define the sentence about MAUDE?, Steven Eker, 06/27/2012
Archive powered by MHonArc 2.6.16.