Skip to Content.
Sympa Menu

k-user - [[K-user] ] Error while compiling lambda.k

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[[K-user] ] Error while compiling lambda.k


Chronological Thread 
  • From: "dongbiao830415 AT foxmail.com" <dongbiao830415 AT foxmail.com>
  • To: k-user <k-user AT lists.cs.illinois.edu>
  • Subject: [[K-user] ] Error while compiling lambda.k
  • Date: Sun, 23 Jul 2017 07:48:34 +0800
  • Authentication-results: illinois.edu; spf=pass smtp.mailfrom=dongbiao830415 AT foxmail.com
  • Feedback-id: esmtp:foxmail.com:bgweb:bgweb115


When using kompile(runtimeverification/k), it fails to compile the lambda.k(a very simple example).

cat lambda.k

[root@localhost hello]# cat lambda.k 
// Copyright (c) 2012-2016 K Team. All Rights Reserved.
module LAMBDA-SYNTAX
  syntax Val ::= Id
               | "lambda" Id "." Exp
  syntax Exp ::= Val
               | Exp Exp      [left]
               | "(" Exp ")"  [bracket]
endmodule

(1) kompile --no-prelude lambda.k. Output:

[root@localhost hello]# kompile --no-prelude lambda.k 
[Error] Compiler: Could not find sorts: [Id]
	Source(/root/src/c-semantics/hello/./lambda.k)
	Location(4,18,4,19)

(2) kompile lambda.k. Output:

[root@localhost hello]# kompile lambda.k
[Error] Compiler: Could not find main module with name LAMBDA in definition.
Use --main-module to specify one.

I don't know what the reason is.
Who has the latest K manual?
Thank you.



dongbiao830415 AT foxmail.com



Archive powered by MHonArc 2.6.19.

Top of Page