Skip to Content.
Sympa Menu

k-user - [K-user] What does the [function] attribute accomplish?

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[K-user] What does the [function] attribute accomplish?


Chronological Thread 
  • From: Charles Jacobsen <charlie.jacobsen AT utah.edu>
  • To: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
  • Subject: [K-user] What does the [function] attribute accomplish?
  • Date: Wed, 3 Jul 2013 17:33:54 +0000
  • Accept-language: en-US
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
  • List-id: <k-user.cs.uiuc.edu>

I've used this for simple "helper functions", but I'm not sure what it does. For example,

syntax Int ::= "countSet" Set [function]
rule countSet .Set => 0
rule countSet SetItem(K:K) S:Set => 1 +Int (countSet S)

This works as expected, but what does the [function] attribute indicate? I couldn't find any info in the overview/primer or by grepping the include dir or source.



Archive powered by MHonArc 2.6.16.

Top of Page