k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: samira kherfellah <samira.kherfellah AT gmail.com>
- To: k-user AT cs.uiuc.edu
- Subject: [K-user] K variables
- Date: Wed, 3 Jul 2013 12:46:43 +0200
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
.
.
.
Variables are initialized to 0.
rule <k> var X:Id TV:TypeVar ; => . ...</k>
<tenv>... . => X |-> TV ...</tenv>
<store>... . => X |-> 0 ...</store>
//task
rule <k> task X:Id := I:Exp ; => . ...</k>
<store>... X |-> (_=> I) ...</store>
<tenv>... X |-> integer ...</tenv>
//_expression_
rule I1:Int + I2:Int => I1 +Int I2
<tenv> x |-> integer </tenv>
<store> x |-> 1 </store>
I want to display the result of the _expression_ "x + 1" and not the _expression_ "x + 1"
- [K-user] K variables, samira kherfellah, 07/03/2013
- Re: [K-user] K variables, Radu Mereuta, 07/03/2013
Archive powered by MHonArc 2.6.16.