k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: wang_feng_bro AT 163.com
- To: k-user AT lists.cs.illinois.edu
- Subject: [[K-user] ] About the Sequential composition
- Date: Thu, 2 Feb 2017 16:45:10 +0800
Hi all,
I try to use K to write the syntax and semantic of some language. But it fails to compute all the statements except the first one. I already add
rule S1:Stmts S2:Stmts => S1 ~> S2 [structural]
in my codes. And the declaration rule is,
rule <k> ... let X = I:Int; =>. ... </k>
<env> Env => Env[X <- !N:Int] </env>
<store> .Map => (!N:Int |-> I) </store> requires notBool(X in keys(Env))
It just can’t recognize two declaration “let x=2; let y=3”. it’s stuck at“let y=3” . Why that ?
Thanks,
Jerry
- [[K-user] ] About the Sequential composition, wang_feng_bro, 02/02/2017
- Re: [[K-user] ] About the Sequential composition, Dorel Lucanu, 02/02/2017
Archive powered by MHonArc 2.6.19.