k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Andrei Arusoaie <andrei.arusoaie AT gmail.com>
- To: wang_feng_bro AT 163.com
- Cc: k-user AT lists.cs.illinois.edu
- Subject: Re: [[K-user] ] What is the meaning of letter K
- Date: Fri, 23 Jun 2017 08:37:59 +0300
Hi Jerry,
If yes, then you must read the entire rule (not only the first row). Essentially, K is a variable, which, in the case of KOOL, is matched by the code stored in the function stack.
Essentially, thing go like this:
When you enter a function, you save the content of the K cell somewhere in the function stack and you replace that content with the body of the function. Then, only the body of the function is executed.
At the end, when you exit from a function, you need to restore: you put the exit value in the <k> cell, followed by the code left to be executed, which is matched by K.
Andrei
2017-06-23 8:28 GMT+03:00 <wang_feng_bro AT 163.com>:
Hi, allWhat is the meaning of “K" in the following rule in the simple language : rule <k> return(V:Val); ~> _ => V ~> K </k> ?Jerry
- [[K-user] ] What is the meaning of letter K, wang_feng_bro, 06/23/2017
- Re: [[K-user] ] What is the meaning of letter K, Andrei Arusoaie, 06/23/2017
Archive powered by MHonArc 2.6.19.