chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Is there any way programmatically to determine a mac


From: Andrew Gwozdziewycz
Subject: Re: [Chicken-users] Is there any way programmatically to determine a macro?
Date: Mon, 5 Jan 2009 18:29:33 -0500

On Jan 5, 2009, at 5:48 PM, Lam Luu wrote:

Hello all!
Given an S-_expression_, (here is an example), is there any way to write a script to determine whether or not that _expression_ is a procedure-call or a macro? If it is a macro call, is there anyway to expand it back to the lowest level of special form possible?
Currently, the only way I know if is using expand-syntax procedure, but that seems to be for interactive use only.

There's a problem with this and that's the fact that macros are expanded at compile time. In otherwords, macros don't exist in an expanded program, so the only thing you'd be able to check is whether or not it's a procedure. 

--
Andrew Gwozdziewycz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]