Skip to Content.
Sympa Menu

k-user - [[K-user] ] Bad 'function call' rule

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[[K-user] ] Bad 'function call' rule


Chronological Thread 
  • From: Mihály Palenik <palenik.mihaly AT gmail.com>
  • To: k-user AT lists.cs.illinois.edu
  • Subject: [[K-user] ] Bad 'function call' rule
  • Date: Fri, 10 Mar 2017 02:22:19 +0100

Hello,

I have the following sorts:
  • In COMMON module
syntax Exps ::= List{Exp, ","}   [strict]
syntax Exp ::= "{" Exps "}"       [strict]  // tuple
syntax Exp ::= "case" Exp "of" Match "end"  [strict(1)]
  • In LANG module
syntax Value ::= Int | Bool | "{" Values "}"
syntax Values ::= List{Value, ","}
syntax KResult ::= Value | Values

And I have this function call rule:
rule Name(Args) => case { Args } of getMatch end

case rule is work perfectly, but when I use function call rule, K stuck in case. It can't find out that { Args } is a Value.

For example I want to call foo() func, then it stuck
<k> case { .Exps } of { .Exps } -> "something" end </k>

But If I write case { .Exps } of { .Exps } -> "something" end in source code it works and the result is "something".

Thank you your answers in advance!

Best regards,
Mihály Palenik
  




Archive powered by MHonArc 2.6.19.

Top of Page