Skip to Content.
Sympa Menu

maude-help - Re: [Maude-help] Wildcard symbol

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

Re: [Maude-help] Wildcard symbol


Chronological Thread 
  • From: Javi Espert <jespert AT dsic.upv.es>
  • To: Matthew Rocklin <mrocklin AT cs.uchicago.edu>
  • Cc: maude-help AT cs.uiuc.edu
  • Subject: Re: [Maude-help] Wildcard symbol
  • Date: Fri, 11 May 2012 17:30:55 +0200
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/maude-help>
  • List-id: <maude-help.cs.uiuc.edu>

Hi,

There is no such a thing as a wildcard symbol in Maude. However, you can accomplish the same goal by placing fresh variables wherever you would write a wildcard. A variable is fresh if it doesn't appear anywhere else in the _expression_.

Best regards,
Javi Espert

2012/5/11 Matthew Rocklin <mrocklin AT cs.uchicago.edu>
I'm looking for a wildcard symbol. 

I.e. imagine I have an operation like this

op F : Char Nat String Float -> Bool .

And I want a rule that says, if the first char is an 'a', make it an "A". I want to write this rule like this:

eq F("a", _, _, _) = F("A", _, _, _) .

Is there a clean way to do this in Maude?

Best,
-- 
University of Chicago
Computer Science PhD Student


_______________________________________________
Maude-help mailing list
Maude-help AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/maude-help





Archive powered by MHonArc 2.6.16.

Top of Page