Skip to Content.
Sympa Menu

maude-help - [Maude-help] How can I define the sentence about MAUDE?

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

[Maude-help] How can I define the sentence about MAUDE?


Chronological Thread 
  • 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  



Archive powered by MHonArc 2.6.16.

Top of Page