Google Groups Home
Help | Sign in
Macros and Term Rewriting Rules
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Christopher Diggins  
View profile
 More options Sep 1 2007, 10:58 am
From: "Christopher Diggins" <cdigg...@gmail.com>
Date: Sat, 1 Sep 2007 10:58:25 -0400
Local: Sat, Sep 1 2007 10:58 am
Subject: Macros and Term Rewriting Rules
Some musings:

I wonder if I should make a new macro system that is different from
the term rewriting rules for Cat, or if I should extend the
expressiveness of the term rewriting rules. The problem is that term
rewriting rules are declarative, and performing any real programming
with declarative constructs is very hard. See for example: XSLT.

I want to implement something like what Tom Schouten and others have
done using Scheme macros to translate blocks of code into new blocks
of code, but where data is passed along the way. It is kind of like
translating Cat code into CPS (continuation passing style) format, or
a kind of pseduo-monad. Basically every statck instruction gets
wrapped with a "dip" instruction, so that the data on the top of the
stack is left unmolested.

So the question is: to do this do I extend the term rewriting system,
add another macro system, or add declarative constructs to the
language. The last one is not really an option as far as I am
concerned.

Just thinking out loud, feel free to jump in and comment.

Christopher


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google