Cowlix Wearing my mind on my sleeve

Thursday, December 20, 2001
Lambda

Re-writing abstractions, or Lambda: the ultimate pattern macro:

A practical topic of this message is making programming of pattern-based rewriting systems more intuitive. It is far from trivial to build complex re-writing rules from simpler ones, in head-first pattern-based rewriting systems. The familiar idioms of a 'function call' and a functional composition -- let alone higher-level combinators such as fold -- do not easily apply.

This article proposes a solution: continuation-passing-style (CPS) coupled with a macro-lambda. The solution makes it trivial to compose re-writing rules and to use higher-order rule combinators. We can code re-writing rules using traditional, well-understood applicative programming idioms. The solution relies on a first-class denotation for a future re-writing.

Oh, baby. [via Lambda the Ultimate]

Comments
Post a comment
Name:


Email Address:
 

URL:


Notes:
  • Name and email are required
  • Email will not be disclosed
  • HTML will be stripped
  • URLs will be linked
Comments:


Remember info?



December 2001
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Line

Copyright © 2001-2002 by Wes Cowley
wcowley@cowlix.com