k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Traian Florin Şerbănuţă <traian.serbanuta AT fmi.unibuc.ro>
- To: "Park, Daejun" <dpark69 AT illinois.edu>
- Cc: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
- Subject: Re: [K-user] How to force all macro-rules to be applied in advance
- Date: Thu, 6 Feb 2014 21:12:36 +0200
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
well, since macros are not completed with cells while (most) other rules are, and since Maude does innermost rewriting, it means your macros will only compete for application with functions and anywhere rules. Therefore most of the time they will just work as intended.
There was a plan (at least for the Maude backend) to separate macros in a different module and use that to preprocess the input, but it never seemed to get implemented. Nevertheless doing this should be pretty straight-forward.
best wishes,
Traian
2014-02-06 Park, Daejun <dpark69 AT illinois.edu>:
Hi all,
Is there any way (or simple trick) to force all macro-rules to be resolved before applying other normal-rules?
I got an undesirable behavior since a rule is applied without resolving its inner macro-rules. Previously, I tackled this problem by separating two phases--macro expansion and normal rule rewriting--that are written in totally different K definitions, but now I cannot rely on the approach, because I need to merge two phases in a single K definition in order to support 'eval' semantics.
Thanks in advance.
Best,
Daejun
_______________________________________________
k-user mailing list
k-user AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/k-user
- [K-user] How to force all macro-rules to be applied in advance, Park, Daejun, 02/06/2014
- <Possible follow-up(s)>
- [K-user] How to force all macro-rules to be applied in advance, Park, Daejun, 02/06/2014
- Re: [K-user] How to force all macro-rules to be applied in advance, Traian Florin Şerbănuţă, 02/06/2014
- Re: [K-user] How to force all macro-rules to be applied in advance, Park, Daejun, 02/07/2014
- Re: [K-user] How to force all macro-rules to be applied in advance, Traian Florin Şerbănuţă, 02/06/2014
Archive powered by MHonArc 2.6.16.