k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: 張 民 <zhmtechie AT gmail.com>
- To: k-user AT cs.uiuc.edu
- Subject: [K-user] About using natural numbers in K
- Date: Tue, 3 Dec 2013 13:18:05 +0900
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
Dear K users,
Maybe I overlooked, but I didn't find in the tutorial about how to use Natural numbers in K.
I tested the following simple code, but it does not work.
module TEST
syntax Test ::= Id "=" Nat
endmodule
It can be kompiled.
But input like a = 3 cannot be parsed, saying that 3 is unexpected. If I use Int instead of Nat, it works.
Could someone help explain this?
Best,
Zhang Min
- [K-user] About using natural numbers in K, 張 民, 12/02/2013
Archive powered by MHonArc 2.6.16.