Skip to Content.
Sympa Menu

k-user - Re: [K-user] Failed to kompile Fig 3 of K Primer

k-user AT lists.siebelschool.illinois.edu

Subject: K-user mailing list

List archive

Re: [K-user] Failed to kompile Fig 3 of K Primer


Chronological Thread 
  • From: "Seyed H. HAERI (Hossein)" <hossein.haeri AT gmail.com>
  • To: k-user AT cs.uiuc.edu
  • Subject: Re: [K-user] Failed to kompile Fig 3 of K Primer
  • Date: Mon, 20 Feb 2012 13:59:17 +0100
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of hossein.haeri AT gmail.com designates 10.236.200.165 as permitted sender) smtp.mail=hossein.haeri AT gmail.com; dkim=pass header.i=hossein.haeri AT gmail.com
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user>
  • List-id: <k-user.cs.uiuc.edu>

Hi again,

Now, I have a new error message

<Err>
Error: "exp-lambda.maude", line 317 (mod EXP-LAMBDA-SYNTAX): didn't expect
to...

eq ( let X:#Id = E1:Exp in E2:Exp ) = ( lambda X . E2 ) <---*HERE*
Error: "exp-lambda.maude", line 316 (mod EXP-LAMBDA-SYNTAX): no parse for
st...

eq (let X:#Id = E1:Exp in E2:Exp) = (lambda X . E2) E1 [metadata
"location=(...
</Err>

for this bit of Fig 3:

<Code>
require exp
require /modules/substitution

module EXP-LAMBDA-SYNTAX
imports EXP-SYNTAX

syntax Val ::= #Int
| "lambda" #Id "." Exp [binder]
syntax Exp ::= Val
| Exp Exp [seqstrict]
| "mu" #Id "." Exp [binder]
syntax Exp ::= "let" #Id "=" Exp "in" Exp
| "letrec" #Id #Id "=" Exp "in" Exp

macro (let X:#Id = E1:Exp in E2:Exp) =
(lambda X.E2) E1
end module

module EXP-LAMBDA
end module
</Code>

I can't quite get it why Maude is unhappy with the parenthesisation. Any idea?

TIA,
--Hossein

--------------------------------------------------------------------------------------------------------------

Seyed H. HAERI (Hossein)

Research Assistant
Institute for Software Systems (STS)
Technical University of Hamburg (TUHH)
Hamburg, Germany

ACCU - Professionalism in programming - http://www.accu.org/
--------------------------------------------------------------------------------------------------------------




Archive powered by MHonArc 2.6.16.

Top of Page