Google Groups Home
Help | Sign in
Message from discussion Transforming Data (with Macros)
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
Randall Schulz  
View profile
 More options Mar 27, 3:49 pm
Newsgroups: comp.lang.scheme
From: Randall Schulz <sinkh...@tarpit.net>
Date: Thu, 27 Mar 2008 12:49:50 -0700
Local: Thurs, Mar 27 2008 3:49 pm
Subject: Transforming Data (with Macros)
Hi,

I need to implement a kind of template processor in which simple
constructs like this:

(define-activity
 :name activity-name
 :subactivities subactivity-list)

get translated into a bunch of replacement s-expressions.

I have a simple define-syntax macro definition that seems to work on forms
when they appear in the same Scheme code as the define-syntax form or are
entered interactively after the macro is defined.

I thought that by using (load ...) in the scope of a (let-syntax ...) form
that includes the same macro definition would apply the macro to the
expressions loaded from the file, but I get diagnostics
that "define-activity" is undefined.

What is the general technique for implementing template-driven data ->
data transformations (as opposed to form -> form transformations).

I'll admit, as if it's necessary, that this is my first foray into Scheme
and the last time I did any Lisp it was Common Lisp and quite a long time
ago. So while I understand Lisp basics, I'm pretty naive at this point
with Scheme.

Thanks.

Randall Schulz


    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.

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