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.
--