k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: <danielsf AT ifi.uio.no>
- To: k-user AT lists.cs.illinois.edu
- Subject: [[K-user] ] A Maps of Id to List of Nat
- Date: Mon, 13 Feb 2017 05:44:56 -0600
What would be a good way to create a store from Id to List[Nat] as opposed to
Id to Nat?
I created a simple example where it parses
nat x, y, z
and creates a configuration:
<H>
x |-> #symNat(1)
y |-> #symNat(2)
z |-> #symNat(3)
</H>
But I would like x, y, and z to map to lists of Nats as opposed to a Nat.
Can you point me in the right direction?
Thanks!
Daniel
module SIMPLE
syntax Globals ::= List{Id,","}
syntax Pgm ::= "nat" Globals
configuration <T><k> $PGM:Pgm </k><H> .Map </H></T>
rule <k> nat (Z:Id,Zs:Globals => Zs) </k>
// I would like to somehow say this instead:
// <H> HMap:Map (. => Z|-> ListItem(N) ) </H>
<H> HMap:Map (. => Z|-> N ) </H>
requires fresh(N:Nat) andBool
notBool(Z in keys(HMap)) // no repeated declaration
endmodule
- [[K-user] ] A Maps of Id to List of Nat, danielsf, 02/13/2017
- Re: [[K-user] ] A Maps of Id to List of Nat, Dorel Lucanu, 02/13/2017
- Message not available
- Message not available
- [[K-user] ] A Maps of Id to Set, Daniel Schnetzer Fava, 02/13/2017
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [[K-user] ] A Maps of Id to Set, Lucas Pena, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Daniel Schnetzer Fava, 02/13/2017
- Message not available
- Re: [[K-user] ] A Maps of Id to Set, Lucas Pena, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Daniel Schnetzer Fava, 02/13/2017
- Message not available
- Re: [[K-user] ] A Maps of Id to Set, Lucas Pena, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Daniel Schnetzer Fava, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Saxena, Manasvi, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Daniel Schnetzer Fava, 02/13/2017
- Re: [[K-user] ] A Maps of Id to Set, Lucas Pena, 02/13/2017
- Message not available
- Message not available
- Re: [[K-user] ] A Maps of Id to List of Nat, Dorel Lucanu, 02/13/2017
Archive powered by MHonArc 2.6.19.